#CBC642#CBC642

#CBC642 is a light, vivid yellow. Relative luminance 0.535; OKLCH L 80.7% C 0.149 H 107.2°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#CBC642
RGBrgb(203, 198, 66)
HSLhsl(58, 57%, 53%)
HSVhsv(58, 67%, 80%)
CMYKcmyk(0%, 2.5%, 67.5%, 20.4%)
CIE-LABlab(78.16, -13.83, 63.70)
CIE-LCHlch(78.16, 65.18, 102.25°)
OKLaboklab(80.69% -0.0441 0.1426)
OKLCHoklch(80.69% 0.149 107.2)
XYZxyz(45.8077, 53.4795, 13.0628)
Luminance0.5348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC642 #4247CB
analogous
#CB8142 #CBC642 #8CCB42
triadic
#CBC642 #42CBC6 #C642CB
tetradic
#CBC642 #42CB81 #4247CB #CB428C
square
#CBC642 #42CB81 #4247CB #CB428C
split-complementary
#CBC642 #428CCB #8142CB
monochromatic
#737020 #A39F2D #CBC642 #D8D472 #E5E3A2

Accessibility & contrast

On white

1.80
#CBC642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#CBC642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC642
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC642#FFFFFF#000000##000000
##CBC6421.001.8011.7011.70
#FFFFFF1.801.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2E
Deuteranopia (green-blind)
#D9C44B
Tritanopia (blue-blind)
#D9B9AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cbc642;
/* rgb */ color: rgb(203, 198, 66);
/* oklch */ color: oklch(80.7% 0.149 107.2);
Tailwind
colors: {
  custom: {
    50: '#ded77e',
    500: '#cbc642',
    950: '#000000',
  },
}
SCSS
$custom: #cbc642;
$custom-light: #ded77e;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc642",
  "rgb": {
    "r": 203,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 57.81,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.80694,
    "c": 0.14927,
    "h": 107.2
  },
  "luminance": 0.53478
}

Semantic roles & 50–950 ramp

primary
#CBC642
secondary
#35387C
accent
#4DE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC642

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

Preview Lab → · Contrast checker → · Palette generator →

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