#CEC23F#CEC23F

#CEC23F is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.1% C 0.147 H 104.0°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#CEC23F
RGBrgb(206, 194, 63)
HSLhsl(55, 59%, 53%)
HSVhsv(55, 69%, 81%)
CMYKcmyk(0%, 5.8%, 69.4%, 19.2%)
CIE-LABlab(77.32, -10.69, 64.09)
CIE-LCHlch(77.32, 64.98, 99.47°)
OKLaboklab(80.08% -0.0357 0.1428)
OKLCHoklch(80.08% 0.147 104)
XYZxyz(45.6445, 52.0661, 12.3471)
Luminance0.5206 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC23F #3F4BCE
analogous
#CE7A3F #CEC23F #92CE3F
triadic
#CEC23F #3FCEC2 #C23FCE
tetradic
#CEC23F #3FCE7A #3F4BCE #CE3F92
square
#CEC23F #3FCE7A #3F4BCE #CE3F92
split-complementary
#CEC23F #3F92CE #7A3FCE
monochromatic
#756D1E #A69B2A #CEC23F #DAD170 #E7E1A1

Accessibility & contrast

On white

1.84
#CEC23F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#CEC23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC23F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC23F#FFFFFF#000000##000000
##CEC23F1.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2B
Deuteranopia (green-blind)
#D7C248
Tritanopia (blue-blind)
#DDB5A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec23f;
/* rgb */ color: rgb(206, 194, 63);
/* oklch */ color: oklch(80.1% 0.147 104.0);
Tailwind
colors: {
  custom: {
    50: '#e1d47c',
    500: '#cec23f',
    950: '#000000',
  },
}
SCSS
$custom: #cec23f;
$custom-light: #e1d47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cec23f",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 63
  },
  "hsl": {
    "h": 54.965,
    "s": 59.336,
    "l": 52.745
  },
  "oklch": {
    "l": 0.80082,
    "c": 0.14724,
    "h": 104
  },
  "luminance": 0.52064
}

Semantic roles & 50–950 ramp

primary
#CEC23F
secondary
#343A7D
accent
#52E345
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC23F

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

Preview Lab → · Contrast checker → · Palette generator →

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