#D8C241#D8C241

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

Color values

HEX#D8C241
RGBrgb(216, 194, 65)
HSLhsl(51, 66%, 55%)
HSVhsv(51, 70%, 85%)
CMYKcmyk(0%, 10.2%, 69.9%, 15.3%)
CIE-LABlab(78.21, -6.34, 64.50)
CIE-LCHlch(78.21, 64.81, 95.61°)
OKLaboklab(81% -0.0237 0.1437)
OKLCHoklch(81% 0.146 99.4)
XYZxyz(48.5671, 53.5665, 12.7812)
Luminance0.5356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C241 #4157D8
analogous
#D87641 #D8C241 #A3D841
triadic
#D8C241 #41D8C2 #C241D8
tetradic
#D8C241 #41D876 #4157D8 #D841A3
square
#D8C241 #41D876 #4157D8 #D841A3
split-complementary
#D8C241 #41A3D8 #7641D8
monochromatic
#84741B #B6A125 #D8C241 #E2D274 #EDE3A7

Accessibility & contrast

On white

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

On black

11.71
#D8C241 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C241
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C241#FFFFFF#000000##000000
##D8C2411.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD2E
Deuteranopia (green-blind)
#DAC549
Tritanopia (blue-blind)
#E9B4A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d8c241;
/* rgb */ color: rgb(216, 194, 65);
/* oklch */ color: oklch(81.0% 0.146 99.4);
Tailwind
colors: {
  custom: {
    50: '#e8d47d',
    500: '#d8c241',
    950: '#000000',
  },
}
SCSS
$custom: #d8c241;
$custom-light: #e8d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c241",
  "rgb": {
    "r": 216,
    "g": 194,
    "b": 65
  },
  "hsl": {
    "h": 51.258,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81,
    "c": 0.14566,
    "h": 99.4
  },
  "luminance": 0.53564
}

Semantic roles & 50–950 ramp

primary
#D8C241
secondary
#33408A
accent
#58E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C241

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

Preview Lab → · Contrast checker → · Palette generator →

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