#D2C754#D2C754

#D2C754 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.7% C 0.136 H 103.9°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#D2C754
RGBrgb(210, 199, 84)
HSLhsl(55, 58%, 58%)
HSVhsv(55, 60%, 82%)
CMYKcmyk(0%, 5.2%, 60%, 17.6%)
CIE-LABlab(79.15, -10.30, 57.47)
CIE-LCHlch(79.15, 58.39, 100.16°)
OKLaboklab(81.67% -0.0325 0.1319)
OKLCHoklch(81.67% 0.136 103.9)
XYZxyz(48.6037, 55.1903, 16.4784)
Luminance0.5519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C754 #545FD2
analogous
#D28854 #D2C754 #9ED254
triadic
#D2C754 #54D2C7 #C754D2
tetradic
#D2C754 #54D288 #545FD2 #D2549E
square
#D2C754 #54D288 #545FD2 #D2549E
split-complementary
#D2C754 #549ED2 #8854D2
monochromatic
#887F24 #B8AC31 #D2C754 #DFD784 #EBE7B5

Accessibility & contrast

On white

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

On black

12.04
#D2C754 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C754
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C754#FFFFFF#000000##000000
##D2C7541.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C147
Deuteranopia (green-blind)
#DBC75A
Tritanopia (blue-blind)
#E1BBAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c754;
/* rgb */ color: rgb(210, 199, 84);
/* oklch */ color: oklch(81.7% 0.136 103.9);
Tailwind
colors: {
  custom: {
    50: '#e3d789',
    500: '#d2c754',
    950: '#000000',
  },
}
SCSS
$custom: #d2c754;
$custom-light: #e3d789;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c754",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 84
  },
  "hsl": {
    "h": 54.762,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81672,
    "c": 0.13589,
    "h": 103.9
  },
  "luminance": 0.55189
}

Semantic roles & 50–950 ramp

primary
#D2C754
secondary
#3C438E
accent
#54E246
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C754

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

Preview Lab → · Contrast checker → · Palette generator →

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