#CEC262#CEC262

#CEC262 is a light, moderate yellow. Relative luminance 0.526; OKLCH L 80.4% C 0.119 H 102.2°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#CEC262
RGBrgb(206, 194, 98)
HSLhsl(53, 52%, 60%)
HSVhsv(53, 52%, 81%)
CMYKcmyk(0%, 5.8%, 52.4%, 19.2%)
CIE-LABlab(77.63, -8.33, 49.22)
CIE-LCHlch(77.63, 49.92, 99.61°)
OKLaboklab(80.43% -0.0251 0.1159)
OKLCHoklch(80.43% 0.119 102.2)
XYZxyz(46.9514, 52.5888, 19.2304)
Luminance0.5259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC262 #626ECE
analogous
#CE8C62 #CEC262 #A4CE62
triadic
#CEC262 #62CEC2 #C262CE
tetradic
#CEC262 #62CE8C #626ECE #CE62A4
square
#CEC262 #62CE8C #626ECE #CE62A4
split-complementary
#CEC262 #62A4CE #8C62CE
monochromatic
#8A802B #B9AB3A #CEC262 #DDD491 #EBE6BF

Accessibility & contrast

On white

1.82
#CEC262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.52
#CEC262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC262
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC262#FFFFFF#000000##000000
##CEC2621.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BD59
Deuteranopia (green-blind)
#D5C266
Tritanopia (blue-blind)
#DBB7AC
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cec262;
/* rgb */ color: rgb(206, 194, 98);
/* oklch */ color: oklch(80.4% 0.119 102.2);
Tailwind
colors: {
  custom: {
    50: '#dfd491',
    500: '#cec262',
    950: '#000000',
  },
}
SCSS
$custom: #cec262;
$custom-light: #dfd491;
$custom-dark: #000000;
JSON
{
  "hex": "#cec262",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 53.333,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.80429,
    "c": 0.11858,
    "h": 102.2
  },
  "luminance": 0.52587
}

Semantic roles & 50–950 ramp

primary
#CEC262
secondary
#434C91
accent
#5CDC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC262

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

Preview Lab → · Contrast checker → · Palette generator →

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