#D7C251#D7C251

#D7C251 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 81.0% C 0.134 H 98.8°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#D7C251
RGBrgb(215, 194, 81)
HSLhsl(51, 63%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 9.8%, 62.3%, 15.7%)
CIE-LABlab(78.24, -5.84, 57.92)
CIE-LCHlch(78.24, 58.21, 95.76°)
OKLaboklab(81.05% -0.0205 0.1324)
OKLCHoklch(81.05% 0.134 98.8)
XYZxyz(48.8033, 53.6269, 15.5633)
Luminance0.5363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C251 #5166D7
analogous
#D77F51 #D7C251 #A9D751
triadic
#D7C251 #51D7C2 #C251D7
tetradic
#D7C251 #51D77F #5166D7 #D751A9
square
#D7C251 #51D77F #5166D7 #D751A9
split-complementary
#D7C251 #51A9D7 #7F51D7
monochromatic
#8D7C20 #BFA82C #D7C251 #E2D383 #EEE5B5

Accessibility & contrast

On white

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

On black

11.73
#D7C251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C251
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C251#FFFFFF#000000##000000
##D7C2511.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#D9C557
Tritanopia (blue-blind)
#E7B5AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c251;
/* rgb */ color: rgb(215, 194, 81);
/* oklch */ color: oklch(81.0% 0.134 98.8);
Tailwind
colors: {
  custom: {
    50: '#e6d486',
    500: '#d7c251',
    950: '#000000',
  },
}
SCSS
$custom: #d7c251;
$custom-light: #e6d486;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c251",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 50.597,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.81047,
    "c": 0.13392,
    "h": 98.8
  },
  "luminance": 0.53625
}

Semantic roles & 50–950 ramp

primary
#D7C251
secondary
#394793
accent
#5CE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C251

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

Preview Lab → · Contrast checker → · Palette generator →

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