#D7C74E#D7C74E

#D7C74E is a very light, vivid yellow. Relative luminance 0.558; OKLCH L 82.1% C 0.141 H 101.8°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#D7C74E
RGBrgb(215, 199, 78)
HSLhsl(53, 63%, 57%)
HSVhsv(53, 64%, 84%)
CMYKcmyk(0%, 7.4%, 63.7%, 15.7%)
CIE-LABlab(79.53, -8.59, 60.58)
CIE-LCHlch(79.53, 61.19, 98.07°)
OKLaboklab(82.06% -0.0287 0.1376)
OKLCHoklch(82.06% 0.141 101.8)
XYZxyz(49.8249, 55.8460, 15.3611)
Luminance0.5584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C74E #4E5ED7
analogous
#D7834E #D7C74E #A2D74E
triadic
#D7C74E #4ED7C7 #C74ED7
tetradic
#D7C74E #4ED783 #4E5ED7 #D74EA2
square
#D7C74E #4ED783 #4E5ED7 #D74EA2
split-complementary
#D7C74E #4EA2D7 #834ED7
monochromatic
#8B7F1F #BDAC2B #D7C74E #E2D780 #EEE7B2

Accessibility & contrast

On white

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

On black

12.17
#D7C74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C74E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C74E#FFFFFF#000000##000000
##D7C74E1.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C13F
Deuteranopia (green-blind)
#DDC855
Tritanopia (blue-blind)
#E7BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d7c74e;
/* rgb */ color: rgb(215, 199, 78);
/* oklch */ color: oklch(82.1% 0.141 101.8);
Tailwind
colors: {
  custom: {
    50: '#e7d785',
    500: '#d7c74e',
    950: '#000000',
  },
}
SCSS
$custom: #d7c74e;
$custom-light: #e7d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c74e",
  "rgb": {
    "r": 215,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 52.993,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.82056,
    "c": 0.14052,
    "h": 101.8
  },
  "luminance": 0.55844
}

Semantic roles & 50–950 ramp

primary
#D7C74E
secondary
#384391
accent
#55E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C74E

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

Preview Lab → · Contrast checker → · Palette generator →

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