#D6C74F#D6C74F

#D6C74F is a light, vivid yellow. Relative luminance 0.557; OKLCH L 82.0% C 0.140 H 102.2°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#D6C74F
RGBrgb(214, 199, 79)
HSLhsl(53, 62%, 57%)
HSVhsv(53, 63%, 84%)
CMYKcmyk(0%, 7%, 63.1%, 16.1%)
CIE-LABlab(79.45, -8.95, 60.05)
CIE-LCHlch(79.45, 60.72, 98.48°)
OKLaboklab(81.98% -0.0295 0.1366)
OKLCHoklch(81.98% 0.14 102.2)
XYZxyz(49.5682, 55.7095, 15.5376)
Luminance0.5571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D6C74F #4F5ED6
analogous
#D6834F #D6C74F #A2D64F
triadic
#D6C74F #4FD6C7 #C74FD6
tetradic
#D6C74F #4FD683 #4F5ED6 #D64FA2
square
#D6C74F #4FD683 #4F5ED6 #D64FA2
split-complementary
#D6C74F #4FA2D6 #834FD6
monochromatic
#8A7F20 #BCAC2C #D6C74F #E2D781 #EDE7B2

Accessibility & contrast

On white

1.73
#D6C74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#D6C74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D6C74F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D6C74F#FFFFFF#000000##000000
##D6C74F1.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C141
Deuteranopia (green-blind)
#DDC856
Tritanopia (blue-blind)
#E5BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d6c74f;
/* rgb */ color: rgb(214, 199, 79);
/* oklch */ color: oklch(82.0% 0.140 102.2);
Tailwind
colors: {
  custom: {
    50: '#e6d786',
    500: '#d6c74f',
    950: '#000000',
  },
}
SCSS
$custom: #d6c74f;
$custom-light: #e6d786;
$custom-dark: #000000;
JSON
{
  "hex": "#d6c74f",
  "rgb": {
    "r": 214,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 53.333,
    "s": 62.212,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81976,
    "c": 0.13977,
    "h": 102.2
  },
  "luminance": 0.55708
}

Semantic roles & 50–950 ramp

primary
#D6C74F
secondary
#394390
accent
#55E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D6C74F

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

Preview Lab → · Contrast checker → · Palette generator →

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