#D1B242#D1B242

#D1B242 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 77.1% C 0.133 H 93.4°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#D1B242
RGBrgb(209, 178, 66)
HSLhsl(47, 61%, 54%)
HSVhsv(47, 68%, 82%)
CMYKcmyk(0%, 14.8%, 68.4%, 18%)
CIE-LABlab(73.41, -0.96, 59.03)
CIE-LCHlch(73.41, 59.04, 90.93°)
OKLaboklab(77.05% -0.0078 0.1326)
OKLCHoklch(77.05% 0.133 93.4)
XYZxyz(43.2005, 45.7918, 11.7164)
Luminance0.4579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1B242 #4261D1
analogous
#D16B42 #D1B242 #A9D142
triadic
#D1B242 #42D1B2 #B242D1
tetradic
#D1B242 #42D16B #4261D1 #D142A9
square
#D1B242 #42D16B #4261D1 #D142A9
split-complementary
#D1B242 #42A9D1 #6B42D1
monochromatic
#7B671E #AC902A #D1B242 #DDC673 #E9DAA4

Accessibility & contrast

On white

2.07
#D1B242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#D1B242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1B242
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1B242#FFFFFF#000000##000000
##D1B2421.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF33
Deuteranopia (green-blind)
#CCB848
Tritanopia (blue-blind)
#E1A49B
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d1b242;
/* rgb */ color: rgb(209, 178, 66);
/* oklch */ color: oklch(77.1% 0.133 93.4);
Tailwind
colors: {
  custom: {
    50: '#e3c87c',
    500: '#d1b242',
    950: '#000000',
  },
}
SCSS
$custom: #d1b242;
$custom-light: #e3c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#d1b242",
  "rgb": {
    "r": 209,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 46.993,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.77053,
    "c": 0.13278,
    "h": 93.4
  },
  "luminance": 0.45789
}

Semantic roles & 50–950 ramp

primary
#D1B242
secondary
#99A6D6
accent
#67E444
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D1B242

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

Preview Lab → · Contrast checker → · Palette generator →

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