#CBC842#CBC842

#CBC842 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.1% C 0.151 H 108.1°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#CBC842
RGBrgb(203, 200, 66)
HSLhsl(59, 57%, 53%)
HSVhsv(59, 67%, 80%)
CMYKcmyk(0%, 1.5%, 67.5%, 20.4%)
CIE-LABlab(78.69, -14.84, 64.24)
CIE-LCHlch(78.69, 65.93, 103.01°)
OKLaboklab(81.12% -0.0469 0.1438)
OKLCHoklch(81.12% 0.151 108.1)
XYZxyz(46.2679, 54.3999, 13.2162)
Luminance0.5440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC842 #4245CB
analogous
#CB8342 #CBC842 #8ACB42
triadic
#CBC842 #42CBC8 #C842CB
tetradic
#CBC842 #42CB83 #4245CB #CB428A
square
#CBC842 #42CB83 #4245CB #CB428A
split-complementary
#CBC842 #428ACB #8342CB
monochromatic
#737120 #A3A02D #CBC842 #D8D672 #E5E4A2

Accessibility & contrast

On white

1.77
#CBC842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.88
#CBC842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC842
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC842#FFFFFF#000000##000000
##CBC8421.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DAC54B
Tritanopia (blue-blind)
#D9BBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cbc842;
/* rgb */ color: rgb(203, 200, 66);
/* oklch */ color: oklch(81.1% 0.151 108.1);
Tailwind
colors: {
  custom: {
    50: '#ded87e',
    500: '#cbc842',
    950: '#000000',
  },
}
SCSS
$custom: #cbc842;
$custom-light: #ded87e;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc842",
  "rgb": {
    "r": 203,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 58.686,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.81123,
    "c": 0.15122,
    "h": 108.1
  },
  "luminance": 0.54398
}

Semantic roles & 50–950 ramp

primary
#CBC842
secondary
#35377C
accent
#4BE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC842

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

Preview Lab → · Contrast checker → · Palette generator →

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