#CBC042#CBC042

#CBC042 is a light, vivid yellow. Relative luminance 0.508; OKLCH L 79.4% C 0.144 H 104.3°. Best body text is #000000 at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#CBC042
RGBrgb(203, 192, 66)
HSLhsl(55, 57%, 53%)
HSVhsv(55, 67%, 80%)
CMYKcmyk(0%, 5.4%, 67.5%, 20.4%)
CIE-LABlab(76.55, -10.79, 62.07)
CIE-LCHlch(76.55, 63.00, 99.86°)
OKLaboklab(79.42% -0.0355 0.1392)
OKLCHoklch(79.42% 0.144 104.3)
XYZxyz(44.4634, 50.7908, 12.6147)
Luminance0.5079 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC042 #424DCB
analogous
#CB7B42 #CBC042 #92CB42
triadic
#CBC042 #42CBC0 #C042CB
tetradic
#CBC042 #42CB7B #424DCB #CB4292
square
#CBC042 #42CB7B #424DCB #CB4292
split-complementary
#CBC042 #4292CB #7B42CB
monochromatic
#736C20 #A3992D #CBC042 #D8D072 #E5E0A2

Accessibility & contrast

On white

1.88
#CBC042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.16
#CBC042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC042
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC042#FFFFFF#000000##000000
##CBC0421.001.8811.1611.16
#FFFFFF1.881.0021.0021.00
#00000011.1621.001.001.00
##00000011.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D4C04A
Tritanopia (blue-blind)
#DAB3A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cbc042;
/* rgb */ color: rgb(203, 192, 66);
/* oklch */ color: oklch(79.4% 0.144 104.3);
Tailwind
colors: {
  custom: {
    50: '#ded27d',
    500: '#cbc042',
    950: '#000000',
  },
}
SCSS
$custom: #cbc042;
$custom-light: #ded27d;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc042",
  "rgb": {
    "r": 203,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 55.182,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.79416,
    "c": 0.14364,
    "h": 104.3
  },
  "luminance": 0.50789
}

Semantic roles & 50–950 ramp

primary
#CBC042
secondary
#353B7C
accent
#54E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC042

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

Preview Lab → · Contrast checker → · Palette generator →

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