#CBC142#CBC142

#CBC142 is a light, vivid yellow. Relative luminance 0.512; OKLCH L 79.6% C 0.145 H 104.8°. Best body text is #000000 at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#CBC142
RGBrgb(203, 193, 66)
HSLhsl(56, 57%, 53%)
HSVhsv(56, 67%, 80%)
CMYKcmyk(0%, 4.9%, 67.5%, 20.4%)
CIE-LABlab(76.82, -11.30, 62.34)
CIE-LCHlch(76.82, 63.36, 100.27°)
OKLaboklab(79.63% -0.0369 0.1398)
OKLCHoklch(79.63% 0.145 104.8)
XYZxyz(44.6837, 51.2315, 12.6881)
Luminance0.5123 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC142 #424CCB
analogous
#CB7C42 #CBC142 #91CB42
triadic
#CBC142 #42CBC1 #C142CB
tetradic
#CBC142 #42CB7C #424CCB #CB4291
square
#CBC142 #42CB7C #424CCB #CB4291
split-complementary
#CBC142 #4291CB #7C42CB
monochromatic
#736D20 #A39A2D #CBC142 #D8D172 #E5E0A2

Accessibility & contrast

On white

1.87
#CBC142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.25
#CBC142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC142
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC142#FFFFFF#000000##000000
##CBC1421.001.8711.2511.25
#FFFFFF1.871.0021.0021.00
#00000011.2521.001.001.00
##00000011.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA30
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#DAB4A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cbc142;
/* rgb */ color: rgb(203, 193, 66);
/* oklch */ color: oklch(79.6% 0.145 104.8);
Tailwind
colors: {
  custom: {
    50: '#ded37d',
    500: '#cbc142',
    950: '#000000',
  },
}
SCSS
$custom: #cbc142;
$custom-light: #ded37d;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc142",
  "rgb": {
    "r": 203,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 55.62,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.79628,
    "c": 0.14455,
    "h": 104.8
  },
  "luminance": 0.5123
}

Semantic roles & 50–950 ramp

primary
#CBC142
secondary
#353A7C
accent
#53E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC142

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

Preview Lab → · Contrast checker → · Palette generator →

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