#CBC252#CBC252

#CBC252 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.0% C 0.133 H 104.7°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#CBC252
RGBrgb(203, 194, 82)
HSLhsl(56, 54%, 56%)
HSVhsv(56, 60%, 80%)
CMYKcmyk(0%, 4.4%, 59.6%, 20.4%)
CIE-LABlab(77.22, -10.81, 56.06)
CIE-LCHlch(77.22, 57.09, 100.92°)
OKLaboklab(79.99% -0.0338 0.1288)
OKLCHoklch(79.99% 0.133 104.7)
XYZxyz(45.4449, 51.8908, 15.6031)
Luminance0.5189 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC252 #525BCB
analogous
#CB8552 #CBC252 #97CB52
triadic
#CBC252 #52CBC2 #C252CB
tetradic
#CBC252 #52CB85 #525BCB #CB5297
square
#CBC252 #52CB85 #525BCB #CB5297
split-complementary
#CBC252 #5297CB #8552CB
monochromatic
#7D7726 #ACA334 #CBC252 #D9D381 #E7E3B0

Accessibility & contrast

On white

1.85
#CBC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.38
#CBC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC252
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC252#FFFFFF#000000##000000
##CBC2521.001.8511.3811.38
#FFFFFF1.851.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D5C158
Tritanopia (blue-blind)
#D9B6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cbc252;
/* rgb */ color: rgb(203, 194, 82);
/* oklch */ color: oklch(80.0% 0.133 104.7);
Tailwind
colors: {
  custom: {
    50: '#ded487',
    500: '#cbc252',
    950: '#000000',
  },
}
SCSS
$custom: #cbc252;
$custom-light: #ded487;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc252",
  "rgb": {
    "r": 203,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 55.537,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.79985,
    "c": 0.13319,
    "h": 104.7
  },
  "luminance": 0.51889
}

Semantic roles & 50–950 ramp

primary
#CBC252
secondary
#3C4285
accent
#56DD4B
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CBC252

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

Preview Lab → · Contrast checker → · Palette generator →

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