#D4B823#D4B823

#D4B823 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 78.4% C 0.154 H 97.4°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#D4B823
RGBrgb(212, 184, 35)
HSLhsl(51, 72%, 48%)
HSVhsv(51, 83%, 83%)
CMYKcmyk(0%, 13.2%, 83.5%, 16.9%)
CIE-LABlab(75.08, -4.04, 71.28)
CIE-LCHlch(75.08, 71.39, 93.25°)
OKLaboklab(78.38% -0.0198 0.1527)
OKLCHoklch(78.38% 0.154 97.4)
XYZxyz(44.5977, 48.4018, 8.5832)
Luminance0.4840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B823 #233FD4
analogous
#D45F23 #D4B823 #98D423
triadic
#D4B823 #23D4B8 #B823D4
tetradic
#D4B823 #23D45F #233FD4 #D42398
square
#D4B823 #23D45F #233FD4 #D42398
split-complementary
#D4B823 #2398D4 #5F23D4
monochromatic
#6B5D12 #9F8A1A #D4B823 #E2CC52 #EBDB86

Accessibility & contrast

On white

1.97
#D4B823 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.68
#D4B823 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B823
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B823#FFFFFF#000000##000000
##D4B8231.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB400
Deuteranopia (green-blind)
#D3BD30
Tritanopia (blue-blind)
#E5A99E
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d4b823;
/* rgb */ color: rgb(212, 184, 35);
/* oklch */ color: oklch(78.4% 0.154 97.4);
Tailwind
colors: {
  custom: {
    50: '#e6cc6e',
    500: '#d4b823',
    950: '#000000',
  },
}
SCSS
$custom: #d4b823;
$custom-light: #e6cc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b823",
  "rgb": {
    "r": 212,
    "g": 184,
    "b": 35
  },
  "hsl": {
    "h": 50.508,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.78383,
    "c": 0.15394,
    "h": 97.4
  },
  "luminance": 0.48399
}

Semantic roles & 50–950 ramp

primary
#D4B823
secondary
#7E8CD4
accent
#56EE39
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171308
muted
#85827B

Preview Lab

Preview with #D4B823

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

Preview Lab → · Contrast checker → · Palette generator →

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