#CEB940#CEB940

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

Color values

HEX#CEB940
RGBrgb(206, 185, 64)
HSLhsl(51, 59%, 53%)
HSVhsv(51, 69%, 81%)
CMYKcmyk(0%, 10.2%, 68.9%, 19.2%)
CIE-LABlab(74.95, -6.01, 61.32)
CIE-LCHlch(74.95, 61.61, 95.60°)
OKLaboklab(78.2% -0.0223 0.1372)
OKLCHoklch(78.2% 0.139 99.2)
XYZxyz(43.7300, 48.1920, 11.8481)
Luminance0.4819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEB940 #4055CE
analogous
#CE7240 #CEB940 #9CCE40
triadic
#CEB940 #40CEB9 #B940CE
tetradic
#CEB940 #40CE72 #4055CE #CE409C
square
#CEB940 #40CE72 #4055CE #CE409C
split-complementary
#CEB940 #409CCE #7240CE
monochromatic
#75691E #A6942B #CEB940 #DACB71 #E7DDA1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEB940#FFFFFF#000000##000000
##CEB9401.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)
#CBB42F
Deuteranopia (green-blind)
#D0BC47
Tritanopia (blue-blind)
#DEACA0
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ceb940;
/* rgb */ color: rgb(206, 185, 64);
/* oklch */ color: oklch(78.2% 0.139 99.2);
Tailwind
colors: {
  custom: {
    50: '#e1cd7c',
    500: '#ceb940',
    950: '#000000',
  },
}
SCSS
$custom: #ceb940;
$custom-light: #e1cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#ceb940",
  "rgb": {
    "r": 206,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 51.127,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.78198,
    "c": 0.13897,
    "h": 99.2
  },
  "luminance": 0.4819
}

Semantic roles & 50–950 ramp

primary
#CEB940
secondary
#969FD4
accent
#5DE245
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CEB940

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

Preview Lab → · Contrast checker → · Palette generator →

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