#CEB942#CEB942

#CEB942 is a light, vivid yellow. Relative luminance 0.482; OKLCH L 78.2% C 0.138 H 99.1°. Best body text is #000000 at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#CEB942
RGBrgb(206, 185, 66)
HSLhsl(51, 59%, 53%)
HSVhsv(51, 68%, 81%)
CMYKcmyk(0%, 10.2%, 68%, 19.2%)
CIE-LABlab(74.96, -5.90, 60.53)
CIE-LCHlch(74.96, 60.82, 95.57°)
OKLaboklab(78.22% -0.0218 0.1358)
OKLCHoklch(78.22% 0.138 99.1)
XYZxyz(43.7879, 48.2151, 12.1532)
Luminance0.4821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEB942 #4257CE
analogous
#CE7342 #CEB942 #9DCE42
triadic
#CEB942 #42CEB9 #B942CE
tetradic
#CEB942 #42CE73 #4257CE #CE429D
square
#CEB942 #42CE73 #4257CE #CE429D
split-complementary
#CEB942 #429DCE #7342CE
monochromatic
#776A1F #A7952B #CEB942 #DBCB73 #E7DDA3

Accessibility & contrast

On white

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

On black

10.64
#CEB942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEB942
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEB942#FFFFFF#000000##000000
##CEB9421.001.9710.6410.64
#FFFFFF1.971.0021.0021.00
#00000010.6421.001.001.00
##00000010.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB432
Deuteranopia (green-blind)
#D0BC49
Tritanopia (blue-blind)
#DEACA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ceb942;
/* rgb */ color: rgb(206, 185, 66);
/* oklch */ color: oklch(78.2% 0.138 99.1);
Tailwind
colors: {
  custom: {
    50: '#e0cd7d',
    500: '#ceb942',
    950: '#000000',
  },
}
SCSS
$custom: #ceb942;
$custom-light: #e0cd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#ceb942",
  "rgb": {
    "r": 206,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 51,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.78215,
    "c": 0.13757,
    "h": 99.1
  },
  "luminance": 0.48213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEB942

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

Preview Lab → · Contrast checker → · Palette generator →

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