#D7C457#D7C457

#D7C457 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.5% C 0.131 H 99.5°. Best body text is #000000 at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#D7C457
RGBrgb(215, 196, 87)
HSLhsl(51, 62%, 59%)
HSVhsv(51, 60%, 84%)
CMYKcmyk(0%, 8.8%, 59.5%, 15.7%)
CIE-LABlab(78.82, -6.47, 55.89)
CIE-LCHlch(78.82, 56.27, 96.60°)
OKLaboklab(81.52% -0.0215 0.1289)
OKLCHoklch(81.52% 0.131 99.5)
XYZxyz(49.4865, 54.6171, 16.9505)
Luminance0.5462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C457 #576AD7
analogous
#D78457 #D7C457 #AAD757
triadic
#D7C457 #57D7C4 #C457D7
tetradic
#D7C457 #57D784 #576AD7 #D757AA
square
#D7C457 #57D784 #576AD7 #D757AA
split-complementary
#D7C457 #57AAD7 #8457D7
monochromatic
#918123 #C2AC2E #D7C457 #E3D588 #EFE7BA

Accessibility & contrast

On white

1.76
#D7C457 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.92
#D7C457 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C457
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C457#FFFFFF#000000##000000
##D7C4571.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF4B
Deuteranopia (green-blind)
#DAC65C
Tritanopia (blue-blind)
#E6B7AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d7c457;
/* rgb */ color: rgb(215, 196, 87);
/* oklch */ color: oklch(81.5% 0.131 99.5);
Tailwind
colors: {
  custom: {
    50: '#e6d58a',
    500: '#d7c457',
    950: '#000000',
  },
}
SCSS
$custom: #d7c457;
$custom-light: #e6d58a;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c457",
  "rgb": {
    "r": 215,
    "g": 196,
    "b": 87
  },
  "hsl": {
    "h": 51.094,
    "s": 61.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81521,
    "c": 0.13064,
    "h": 99.5
  },
  "luminance": 0.54615
}

Semantic roles & 50–950 ramp

primary
#D7C457
secondary
#3C4996
accent
#5BE543
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C457

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

Preview Lab → · Contrast checker → · Palette generator →

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