#D2C757#D2C757

#D2C757 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.7% C 0.133 H 103.7°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#D2C757
RGBrgb(210, 199, 87)
HSLhsl(55, 58%, 58%)
HSVhsv(55, 59%, 82%)
CMYKcmyk(0%, 5.2%, 58.6%, 17.6%)
CIE-LABlab(79.18, -10.09, 56.17)
CIE-LCHlch(79.18, 57.07, 100.18°)
OKLaboklab(81.7% -0.0316 0.1296)
OKLCHoklch(81.7% 0.133 103.7)
XYZxyz(48.7237, 55.2383, 17.1105)
Luminance0.5524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C757 #5762D2
analogous
#D28957 #D2C757 #9FD257
triadic
#D2C757 #57D2C7 #C757D2
tetradic
#D2C757 #57D289 #5762D2 #D2579F
square
#D2C757 #57D289 #5762D2 #D2579F
split-complementary
#D2C757 #579FD2 #8957D2
monochromatic
#8A8125 #BAAE32 #D2C757 #DFD787 #ECE7B8

Accessibility & contrast

On white

1.74
#D2C757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.05
#D2C757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C757
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C757#FFFFFF#000000##000000
##D2C7571.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C14B
Deuteranopia (green-blind)
#DBC75D
Tritanopia (blue-blind)
#E0BBAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c757;
/* rgb */ color: rgb(210, 199, 87);
/* oklch */ color: oklch(81.7% 0.133 103.7);
Tailwind
colors: {
  custom: {
    50: '#e2d78a',
    500: '#d2c757',
    950: '#000000',
  },
}
SCSS
$custom: #d2c757;
$custom-light: #e2d78a;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c757",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 87
  },
  "hsl": {
    "h": 54.634,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81703,
    "c": 0.13336,
    "h": 103.7
  },
  "luminance": 0.55237
}

Semantic roles & 50–950 ramp

primary
#D2C757
secondary
#3D4590
accent
#55E147
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C757

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

Preview Lab → · Contrast checker → · Palette generator →

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