#D2C862#D2C862

#D2C862 is a very light, vivid yellow. Relative luminance 0.559; OKLCH L 82.0% C 0.124 H 103.7°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#D2C862
RGBrgb(210, 200, 98)
HSLhsl(55, 55%, 60%)
HSVhsv(55, 53%, 82%)
CMYKcmyk(0%, 4.8%, 53.3%, 17.6%)
CIE-LABlab(79.55, -9.76, 51.56)
CIE-LCHlch(79.55, 52.47, 100.72°)
OKLaboklab(82.04% -0.0294 0.1209)
OKLCHoklch(82.04% 0.124 103.7)
XYZxyz(49.4387, 55.8937, 19.7372)
Luminance0.5589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C862 #626CD2
analogous
#D29062 #D2C862 #A4D262
triadic
#D2C862 #62D2C8 #C862D2
tetradic
#D2C862 #62D290 #626CD2 #D262A4
square
#D2C862 #62D290 #626CD2 #D262A4
split-complementary
#D2C862 #62A4D2 #9062D2
monochromatic
#908729 #C0B437 #D2C862 #E0D992 #EDE9C1

Accessibility & contrast

On white

1.72
#D2C862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#D2C862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C862
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C862#FFFFFF#000000##000000
##D2C8621.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C258
Deuteranopia (green-blind)
#DBC867
Tritanopia (blue-blind)
#E0BCB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c862;
/* rgb */ color: rgb(210, 200, 98);
/* oklch */ color: oklch(82.0% 0.124 103.7);
Tailwind
colors: {
  custom: {
    50: '#e2d891',
    500: '#d2c862',
    950: '#000000',
  },
}
SCSS
$custom: #d2c862;
$custom-light: #e2d891;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c862",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 98
  },
  "hsl": {
    "h": 54.643,
    "s": 55.446,
    "l": 60.392
  },
  "oklch": {
    "l": 0.82036,
    "c": 0.12442,
    "h": 103.7
  },
  "luminance": 0.55892
}

Semantic roles & 50–950 ramp

primary
#D2C862
secondary
#424A96
accent
#31C323
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D2C862

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

Preview Lab → · Contrast checker → · Palette generator →

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