#D2C843#D2C843

#D2C843 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.150 H 105.0°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#D2C843
RGBrgb(210, 200, 67)
HSLhsl(56, 61%, 54%)
HSVhsv(56, 68%, 82%)
CMYKcmyk(0%, 4.8%, 68.1%, 17.6%)
CIE-LABlab(79.28, -11.84, 64.64)
CIE-LCHlch(79.28, 65.71, 100.38°)
OKLaboklab(81.73% -0.0388 0.1445)
OKLCHoklch(81.73% 0.15 105)
XYZxyz(48.2476, 55.4172, 13.4642)
Luminance0.5542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C843 #434DD2
analogous
#D28143 #D2C843 #95D243
triadic
#D2C843 #43D2C8 #C843D2
tetradic
#D2C843 #43D281 #434DD2 #D24395
square
#D2C843 #43D281 #434DD2 #D24395
split-complementary
#D2C843 #4395D2 #8143D2
monochromatic
#7D761E #AEA52A #D2C843 #DED674 #EAE5A6

Accessibility & contrast

On white

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

On black

12.08
#D2C843 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C843
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C843#FFFFFF#000000##000000
##D2C8431.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12F
Deuteranopia (green-blind)
#DDC74C
Tritanopia (blue-blind)
#E1BBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c843;
/* rgb */ color: rgb(210, 200, 67);
/* oklch */ color: oklch(81.7% 0.150 105.0);
Tailwind
colors: {
  custom: {
    50: '#e3d87f',
    500: '#d2c843',
    950: '#000000',
  },
}
SCSS
$custom: #d2c843;
$custom-light: #e3d87f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c843",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 67
  },
  "hsl": {
    "h": 55.804,
    "s": 61.373,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81732,
    "c": 0.14965,
    "h": 105
  },
  "luminance": 0.55415
}

Semantic roles & 50–950 ramp

primary
#D2C843
secondary
#353A84
accent
#4FE443
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C843

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

Preview Lab → · Contrast checker → · Palette generator →

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