#D2C762#D2C762

#D2C762 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.8% C 0.123 H 103.1°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D2C762
RGBrgb(210, 199, 98)
HSLhsl(54, 55%, 60%)
HSVhsv(54, 53%, 82%)
CMYKcmyk(0%, 5.2%, 53.3%, 17.6%)
CIE-LABlab(79.29, -9.25, 51.25)
CIE-LCHlch(79.29, 52.08, 100.23°)
OKLaboklab(81.83% -0.028 0.1202)
OKLCHoklch(81.83% 0.123 103.1)
XYZxyz(49.2079, 55.4320, 19.6603)
Luminance0.5543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C762 #626DD2
analogous
#D28F62 #D2C762 #A5D262
triadic
#D2C762 #62D2C7 #C762D2
tetradic
#D2C762 #62D28F #626DD2 #D262A5
square
#D2C762 #62D28F #626DD2 #D262A5
split-complementary
#D2C762 #62A5D2 #8F62D2
monochromatic
#908629 #C0B237 #D2C762 #E0D892 #EDE9C1

Accessibility & contrast

On white

1.74
#D2C762 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#D2C762 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C762
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C762#FFFFFF#000000##000000
##D2C7621.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C158
Deuteranopia (green-blind)
#DAC767
Tritanopia (blue-blind)
#E0BBB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c762;
/* rgb */ color: rgb(210, 199, 98);
/* oklch */ color: oklch(81.8% 0.123 103.1);
Tailwind
colors: {
  custom: {
    50: '#e2d791',
    500: '#d2c762',
    950: '#000000',
  },
}
SCSS
$custom: #d2c762;
$custom-light: #e2d791;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c762",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 98
  },
  "hsl": {
    "h": 54.107,
    "s": 55.446,
    "l": 60.392
  },
  "oklch": {
    "l": 0.81827,
    "c": 0.12343,
    "h": 103.1
  },
  "luminance": 0.5543
}

Semantic roles & 50–950 ramp

primary
#D2C762
secondary
#424A96
accent
#32C323
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D2C762

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D2C762 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva