#D8C146#D8C146

#D8C146 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.141 H 98.5°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#D8C146
RGBrgb(216, 193, 70)
HSLhsl(51, 65%, 56%)
HSVhsv(51, 68%, 85%)
CMYKcmyk(0%, 10.6%, 67.6%, 15.3%)
CIE-LABlab(77.98, -5.56, 62.30)
CIE-LCHlch(77.98, 62.55, 95.10°)
OKLaboklab(80.83% -0.021 0.1399)
OKLCHoklch(80.83% 0.141 98.5)
XYZxyz(48.4966, 53.1834, 13.5041)
Luminance0.5318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C146 #465DD8
analogous
#D87846 #D8C146 #A6D846
triadic
#D8C146 #46D8C1 #C146D8
tetradic
#D8C146 #46D878 #465DD8 #D846A6
square
#D8C146 #46D878 #465DD8 #D846A6
split-complementary
#D8C146 #46A6D8 #7846D8
monochromatic
#87761C #BAA327 #D8C146 #E3D279 #EDE3AB

Accessibility & contrast

On white

1.80
#D8C146 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#D8C146 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C146
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C146#FFFFFF#000000##000000
##D8C1461.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC35
Deuteranopia (green-blind)
#D9C44D
Tritanopia (blue-blind)
#E8B3A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d8c146;
/* rgb */ color: rgb(216, 193, 70);
/* oklch */ color: oklch(80.8% 0.141 98.5);
Tailwind
colors: {
  custom: {
    50: '#e8d380',
    500: '#d8c146',
    950: '#000000',
  },
}
SCSS
$custom: #d8c146;
$custom-light: #e8d380;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c146",
  "rgb": {
    "r": 216,
    "g": 193,
    "b": 70
  },
  "hsl": {
    "h": 50.548,
    "s": 65.179,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80833,
    "c": 0.14148,
    "h": 98.5
  },
  "luminance": 0.53181
}

Semantic roles & 50–950 ramp

primary
#D8C146
secondary
#35438D
accent
#5AE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C146

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

Preview Lab → · Contrast checker → · Palette generator →

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