#CEB842#CEB842

#CEB842 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 78.0% C 0.137 H 98.5°. Best body text is #000000 at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#CEB842
RGBrgb(206, 184, 66)
HSLhsl(51, 59%, 53%)
HSVhsv(51, 68%, 81%)
CMYKcmyk(0%, 10.7%, 68%, 19.2%)
CIE-LABlab(74.70, -5.38, 60.26)
CIE-LCHlch(74.70, 60.50, 95.11°)
OKLaboklab(78.01% -0.0203 0.1353)
OKLCHoklch(78.01% 0.137 98.5)
XYZxyz(43.5795, 47.7982, 12.0837)
Luminance0.4780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEB842 #4258CE
analogous
#CE7242 #CEB842 #9ECE42
triadic
#CEB842 #42CEB8 #B842CE
tetradic
#CEB842 #42CE72 #4258CE #CE429E
square
#CEB842 #42CE72 #4258CE #CE429E
split-complementary
#CEB842 #429ECE #7242CE
monochromatic
#77691F #A7942B #CEB842 #DBCA73 #E7DDA3

Accessibility & contrast

On white

1.99
#CEB842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.56
#CEB842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEB842
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEB842#FFFFFF#000000##000000
##CEB8421.001.9910.5610.56
#FFFFFF1.991.0021.0021.00
#00000010.5621.001.001.00
##00000010.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB332
Deuteranopia (green-blind)
#CFBB49
Tritanopia (blue-blind)
#DEABA0
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ceb842;
/* rgb */ color: rgb(206, 184, 66);
/* oklch */ color: oklch(78.0% 0.137 98.5);
Tailwind
colors: {
  custom: {
    50: '#e0cd7d',
    500: '#ceb842',
    950: '#000000',
  },
}
SCSS
$custom: #ceb842;
$custom-light: #e0cd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#ceb842",
  "rgb": {
    "r": 206,
    "g": 184,
    "b": 66
  },
  "hsl": {
    "h": 50.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.78006,
    "c": 0.13679,
    "h": 98.5
  },
  "luminance": 0.47796
}

Semantic roles & 50–950 ramp

primary
#CEB842
secondary
#98A1D4
accent
#5EE246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CEB842

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

Preview Lab → · Contrast checker → · Palette generator →

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