#D2C25F#D2C25F

#D2C25F is a light, vivid yellow. Relative luminance 0.531; OKLCH L 80.7% C 0.122 H 100.3°. Best body text is #000000 at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#D2C25F
RGBrgb(210, 194, 95)
HSLhsl(52, 56%, 60%)
HSVhsv(52, 55%, 82%)
CMYKcmyk(0%, 7.6%, 54.8%, 17.6%)
CIE-LABlab(77.94, -6.92, 51.09)
CIE-LCHlch(77.94, 51.56, 97.72°)
OKLaboklab(80.75% -0.0216 0.1196)
OKLCHoklch(80.75% 0.122 100.3)
XYZxyz(47.9373, 53.1133, 18.5510)
Luminance0.5311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C25F #5F6FD2
analogous
#D2885F #D2C25F #A9D25F
triadic
#D2C25F #5FD2C2 #C25FD2
tetradic
#D2C25F #5FD288 #5F6FD2 #D25FA9
square
#D2C25F #5FD288 #5F6FD2 #D25FA9
split-complementary
#D2C25F #5FA9D2 #885FD2
monochromatic
#8F8028 #BEAB36 #D2C25F #DFD48F #EDE6BF

Accessibility & contrast

On white

1.81
#D2C25F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.62
#D2C25F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C25F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C25F#FFFFFF#000000##000000
##D2C25F1.001.8111.6211.62
#FFFFFF1.811.0021.0021.00
#00000011.6221.001.001.00
##00000011.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BD55
Deuteranopia (green-blind)
#D6C364
Tritanopia (blue-blind)
#E0B6AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d2c25f;
/* rgb */ color: rgb(210, 194, 95);
/* oklch */ color: oklch(80.7% 0.122 100.3);
Tailwind
colors: {
  custom: {
    50: '#e2d48f',
    500: '#d2c25f',
    950: '#000000',
  },
}
SCSS
$custom: #d2c25f;
$custom-light: #e2d48f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c25f",
  "rgb": {
    "r": 210,
    "g": 194,
    "b": 95
  },
  "hsl": {
    "h": 51.652,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.80747,
    "c": 0.12152,
    "h": 100.3
  },
  "luminance": 0.53111
}

Semantic roles & 50–950 ramp

primary
#D2C25F
secondary
#414C94
accent
#5DDF48
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D2C25F

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

Preview Lab → · Contrast checker → · Palette generator →

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