#D9C246#D9C246

#D9C246 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.1% C 0.142 H 98.6°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#D9C246
RGBrgb(217, 194, 70)
HSLhsl(51, 66%, 56%)
HSVhsv(51, 68%, 85%)
CMYKcmyk(0%, 10.6%, 67.7%, 14.9%)
CIE-LABlab(78.33, -5.65, 62.69)
CIE-LCHlch(78.33, 62.94, 95.15°)
OKLaboklab(81.13% -0.0213 0.1407)
OKLCHoklch(81.13% 0.142 98.6)
XYZxyz(49.0148, 53.7798, 13.5919)
Luminance0.5378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C246 #465DD9
analogous
#D97946 #D9C246 #A7D946
triadic
#D9C246 #46D9C2 #C246D9
tetradic
#D9C246 #46D979 #465DD9 #D946A7
square
#D9C246 #46D979 #465DD9 #D946A7
split-complementary
#D9C246 #46A7D9 #7946D9
monochromatic
#89781C #BBA426 #D9C246 #E3D379 #EEE3AC

Accessibility & contrast

On white

1.79
#D9C246 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.76
#D9C246 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C246
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C246#FFFFFF#000000##000000
##D9C2461.001.7911.7611.76
#FFFFFF1.791.0021.0021.00
#00000011.7621.001.001.00
##00000011.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD35
Deuteranopia (green-blind)
#DBC54D
Tritanopia (blue-blind)
#EAB4A9
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c246;
/* rgb */ color: rgb(217, 194, 70);
/* oklch */ color: oklch(81.1% 0.142 98.6);
Tailwind
colors: {
  custom: {
    50: '#e8d480',
    500: '#d9c246',
    950: '#000000',
  },
}
SCSS
$custom: #d9c246;
$custom-light: #e8d480;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c246",
  "rgb": {
    "r": 217,
    "g": 194,
    "b": 70
  },
  "hsl": {
    "h": 50.612,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81131,
    "c": 0.14231,
    "h": 98.6
  },
  "luminance": 0.53777
}

Semantic roles & 50–950 ramp

primary
#D9C246
secondary
#35438F
accent
#5AE93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #D9C246

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

Preview Lab → · Contrast checker → · Palette generator →

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