#CEB242#CEB242

#CEB242 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.8% C 0.132 H 94.9°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#CEB242
RGBrgb(206, 178, 66)
HSLhsl(48, 59%, 53%)
HSVhsv(48, 68%, 81%)
CMYKcmyk(0%, 13.6%, 68%, 19.2%)
CIE-LABlab(73.13, -2.25, 58.65)
CIE-LCHlch(73.13, 58.69, 92.19°)
OKLaboklab(76.76% -0.0114 0.1319)
OKLCHoklch(76.76% 0.132 94.9)
XYZxyz(42.3594, 45.3582, 11.6770)
Luminance0.4536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEB242 #425ECE
analogous
#CE6C42 #CEB242 #A4CE42
triadic
#CEB242 #42CEB2 #B242CE
tetradic
#CEB242 #42CE6C #425ECE #CE42A4
square
#CEB242 #42CE6C #425ECE #CE42A4
split-complementary
#CEB242 #42A4CE #6C42CE
monochromatic
#77651F #A78F2B #CEB242 #DBC673 #E7DAA3

Accessibility & contrast

On white

2.09
#CEB242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#CEB242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEB242
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEB242#FFFFFF#000000##000000
##CEB2421.002.0910.0710.07
#FFFFFF2.091.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF33
Deuteranopia (green-blind)
#CBB748
Tritanopia (blue-blind)
#DEA59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ceb242;
/* rgb */ color: rgb(206, 178, 66);
/* oklch */ color: oklch(76.8% 0.132 94.9);
Tailwind
colors: {
  custom: {
    50: '#e1c87c',
    500: '#ceb242',
    950: '#000000',
  },
}
SCSS
$custom: #ceb242;
$custom-light: #e1c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#ceb242",
  "rgb": {
    "r": 206,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 48,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.76763,
    "c": 0.13234,
    "h": 94.9
  },
  "luminance": 0.45356
}

Semantic roles & 50–950 ramp

primary
#CEB242
secondary
#98A4D4
accent
#65E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CEB242

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

Preview Lab → · Contrast checker → · Palette generator →

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