#CBCB42#CBCB42

#CBCB42 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.8% C 0.154 H 109.4°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CBCB42
RGBrgb(203, 203, 66)
HSLhsl(60, 57%, 53%)
HSVhsv(60, 67%, 80%)
CMYKcmyk(0%, 0%, 67.5%, 20.4%)
CIE-LABlab(79.50, -16.34, 65.05)
CIE-LCHlch(79.50, 67.07, 104.10°)
OKLaboklab(81.77% -0.0511 0.1455)
OKLCHoklch(81.77% 0.154 109.4)
XYZxyz(46.9695, 55.8031, 13.4501)
Luminance0.5580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBCB42 #4242CB
analogous
#CB8642 #CBCB42 #86CB42
triadic
#CBCB42 #42CBCB #CB42CB
tetradic
#CBCB42 #42CB86 #4242CB #CB4286
square
#CBCB42 #42CB86 #4242CB #CB4286
split-complementary
#CBCB42 #4286CB #8642CB
monochromatic
#737320 #A3A32D #CBCB42 #D8D872 #E5E5A2

Accessibility & contrast

On white

1.73
#CBCB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.16
#CBCB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBCB42
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBCB42#FFFFFF#000000##000000
##CBCB421.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32D
Deuteranopia (green-blind)
#DDC74C
Tritanopia (blue-blind)
#D9BEB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cbcb42;
/* rgb */ color: rgb(203, 203, 66);
/* oklch */ color: oklch(81.8% 0.154 109.4);
Tailwind
colors: {
  custom: {
    50: '#deda7e',
    500: '#cbcb42',
    950: '#000000',
  },
}
SCSS
$custom: #cbcb42;
$custom-light: #deda7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cbcb42",
  "rgb": {
    "r": 203,
    "g": 203,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.81767,
    "c": 0.15419,
    "h": 109.4
  },
  "luminance": 0.55802
}

Semantic roles & 50–950 ramp

primary
#CBCB42
secondary
#35357C
accent
#48E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBCB42

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

Preview Lab → · Contrast checker → · Palette generator →

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