#CBC158#CBC158

#CBC158 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.8% C 0.127 H 103.9°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#CBC158
RGBrgb(203, 193, 88)
HSLhsl(55, 53%, 57%)
HSVhsv(55, 57%, 80%)
CMYKcmyk(0%, 4.9%, 56.7%, 20.4%)
CIE-LABlab(77.01, -9.86, 53.12)
CIE-LCHlch(77.01, 54.03, 100.52°)
OKLaboklab(79.84% -0.0304 0.1233)
OKLCHoklch(79.84% 0.127 103.9)
XYZxyz(45.4615, 51.5426, 16.7846)
Luminance0.5154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC158 #5862CB
analogous
#CB8858 #CBC158 #9BCB58
triadic
#CBC158 #58CBC1 #C158CB
tetradic
#CBC158 #58CB88 #5862CB #CB589B
square
#CBC158 #58CB88 #5862CB #CB589B
split-complementary
#CBC158 #589BCB #8858CB
monochromatic
#817928 #AFA537 #CBC158 #DAD287 #E8E4B5

Accessibility & contrast

On white

1.86
#CBC158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#CBC158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC158
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC158#FFFFFF#000000##000000
##CBC1581.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB4D
Deuteranopia (green-blind)
#D4C15D
Tritanopia (blue-blind)
#D9B5AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cbc158;
/* rgb */ color: rgb(203, 193, 88);
/* oklch */ color: oklch(79.8% 0.127 103.9);
Tailwind
colors: {
  custom: {
    50: '#ddd38b',
    500: '#cbc158',
    950: '#000000',
  },
}
SCSS
$custom: #cbc158;
$custom-light: #ddd38b;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc158",
  "rgb": {
    "r": 203,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 54.783,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.79838,
    "c": 0.12699,
    "h": 103.9
  },
  "luminance": 0.51541
}

Semantic roles & 50–950 ramp

primary
#CBC158
secondary
#3F4588
accent
#58DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CBC158

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

Preview Lab → · Contrast checker → · Palette generator →

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