#CBC852#CBC852

#CBC852 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.3% C 0.139 H 107.8°. Best body text is #000000 at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#CBC852
RGBrgb(203, 200, 82)
HSLhsl(59, 54%, 56%)
HSVhsv(59, 60%, 80%)
CMYKcmyk(0%, 1.5%, 59.6%, 20.4%)
CIE-LABlab(78.82, -13.86, 57.82)
CIE-LCHlch(78.82, 59.45, 103.48°)
OKLaboklab(81.26% -0.0425 0.1326)
OKLCHoklch(81.26% 0.139 107.8)
XYZxyz(46.8073, 54.6156, 16.0572)
Luminance0.5461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC852 #5255CB
analogous
#CB8B52 #CBC852 #91CB52
triadic
#CBC852 #52CBC8 #C852CB
tetradic
#CBC852 #52CB8B #5255CB #CB5291
square
#CBC852 #52CB8B #5255CB #CB5291
split-complementary
#CBC852 #5291CB #8B52CB
monochromatic
#7D7B26 #ACA934 #CBC852 #D9D781 #E7E6B0

Accessibility & contrast

On white

1.76
#CBC852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.92
#CBC852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC852
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC852#FFFFFF#000000##000000
##CBC8521.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C144
Deuteranopia (green-blind)
#D9C559
Tritanopia (blue-blind)
#D9BCAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cbc852;
/* rgb */ color: rgb(203, 200, 82);
/* oklch */ color: oklch(81.3% 0.139 107.8);
Tailwind
colors: {
  custom: {
    50: '#ded887',
    500: '#cbc852',
    950: '#000000',
  },
}
SCSS
$custom: #cbc852;
$custom-light: #ded887;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc852",
  "rgb": {
    "r": 203,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 58.512,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81262,
    "c": 0.1392,
    "h": 107.8
  },
  "luminance": 0.54614
}

Semantic roles & 50–950 ramp

primary
#CBC852
secondary
#3C3E85
accent
#4EDD4B
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CBC852

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

Preview Lab → · Contrast checker → · Palette generator →

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