#D8DC2D

#d8dc2d ≈ Pear

  • yellow
  • Lightness: medium
  • Saturation: strong
  • Warm

#d8dc2d is a color from the yellow family, with medium lightness and strong saturation. In the RGB model it is made of 84.71% red, 86.27% green and 17.65% blue; printed in CMYK it uses 1.82% cyan, 0% magenta, 79.55% yellow and 13.73% black. Its hue angle is 61.37°, with 71.43% saturation and 51.96% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and brand accents. Black text on this color reaches a contrast ratio of 14.19:1 (WCAG AAA). The closest named color is Pear (#d1e231), ΔE 2.86.

Description generated from the measured properties of this color.

Conversions of #d8dc2d into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#cccc33
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.6597

Readable text 1.48:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 14.19:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #d4d4d4 ≈ 0.003% of males
Achromatomaly #d6d7ab ≈ 0.001% of males
Protanopia #eed200 ≈ 1.01% of males
Deuteranopia #efd63e ≈ 1.27% of males
Tritanopia #e7cebd ≈ 0.0001% of males
Protanomaly #e5d60f ≈ 1.08% of males
Deuteranomaly #e6d938 ≈ 4.63% of males
Tritanomaly #e1d498 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d8dc2d {
  color: #d8dc2d;
}
Background
.bg-d8dc2d {
  background-color: #d8dc2d;
  color: #000000;
}
Border
.border-d8dc2d {
  border: 2px solid #d8dc2d;
}
CSS variables
:root {
  --color-primary: #d8dc2d;
  --color-primary-rgb: 216 220 45;
  --color-primary-hsl: 61 71% 52%;
}
Gradient
.gradient-d8dc2d {
  background: linear-gradient(135deg, #d8dc2d, #81dc2d);
}
Colored shadow
.shadow-d8dc2d {
  box-shadow: 0 8px 24px rgb(216 220 45 / 0.35);
}

Pear
#d8dc2d  rgb(216, 220, 45)  hsl(61, 71%, 52%)  Pear
#312ddc  rgb(49, 45, 220)  hsl(241, 71%, 52%)  Blue
#2dd8dc  rgb(45, 216, 220)  hsl(181, 71%, 52%)  Dark Turquoise
#dc2dd8  rgb(220, 45, 216)  hsl(301, 71%, 52%)  Medium Orchid