#CBC152#CBC152

#CBC152 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.132 H 104.2°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#CBC152
RGBrgb(203, 193, 82)
HSLhsl(55, 54%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 4.9%, 59.6%, 20.4%)
CIE-LABlab(76.95, -10.30, 55.76)
CIE-LCHlch(76.95, 56.71, 100.47°)
OKLaboklab(79.77% -0.0323 0.1282)
OKLCHoklch(79.77% 0.132 104.2)
XYZxyz(45.2231, 51.4472, 15.5292)
Luminance0.5145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC152 #525CCB
analogous
#CB8452 #CBC152 #98CB52
triadic
#CBC152 #52CBC1 #C152CB
tetradic
#CBC152 #52CB84 #525CCB #CB5298
square
#CBC152 #52CB84 #525CCB #CB5298
split-complementary
#CBC152 #5298CB #8452CB
monochromatic
#7D7626 #ACA234 #CBC152 #D9D281 #E7E3B0

Accessibility & contrast

On white

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

On black

11.29
#CBC152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC152
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC152#FFFFFF#000000##000000
##CBC1521.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D4C058
Tritanopia (blue-blind)
#D9B5A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cbc152;
/* rgb */ color: rgb(203, 193, 82);
/* oklch */ color: oklch(79.8% 0.132 104.2);
Tailwind
colors: {
  custom: {
    50: '#ded387',
    500: '#cbc152',
    950: '#000000',
  },
}
SCSS
$custom: #cbc152;
$custom-light: #ded387;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc152",
  "rgb": {
    "r": 203,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 55.041,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.79774,
    "c": 0.13222,
    "h": 104.2
  },
  "luminance": 0.51446
}

Semantic roles & 50–950 ramp

primary
#CBC152
secondary
#3C4285
accent
#57DD4B
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140B
muted
#84837E

Preview Lab

Preview with #CBC152

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

Preview Lab → · Contrast checker → · Palette generator →

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