#CBC742#CBC742

#CBC742 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 80.9% C 0.150 H 107.6°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#CBC742
RGBrgb(203, 199, 66)
HSLhsl(58, 57%, 53%)
HSVhsv(58, 67%, 80%)
CMYKcmyk(0%, 2%, 67.5%, 20.4%)
CIE-LABlab(78.43, -14.34, 63.97)
CIE-LCHlch(78.43, 65.56, 102.63°)
OKLaboklab(80.91% -0.0455 0.1432)
OKLCHoklch(80.91% 0.15 107.6)
XYZxyz(46.0371, 53.9382, 13.1393)
Luminance0.5394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC742 #4246CB
analogous
#CB8242 #CBC742 #8BCB42
triadic
#CBC742 #42CBC7 #C742CB
tetradic
#CBC742 #42CB82 #4246CB #CB428B
square
#CBC742 #42CB82 #4246CB #CB428B
split-complementary
#CBC742 #428BCB #8242CB
monochromatic
#737120 #A3A02D #CBC742 #D8D572 #E5E3A2

Accessibility & contrast

On white

1.78
#CBC742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#CBC742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC742
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC742#FFFFFF#000000##000000
##CBC7421.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#DAC44B
Tritanopia (blue-blind)
#D9BAAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cbc742;
/* rgb */ color: rgb(203, 199, 66);
/* oklch */ color: oklch(80.9% 0.150 107.6);
Tailwind
colors: {
  custom: {
    50: '#ded77e',
    500: '#cbc742',
    950: '#000000',
  },
}
SCSS
$custom: #cbc742;
$custom-light: #ded77e;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc742",
  "rgb": {
    "r": 203,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 58.248,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.80908,
    "c": 0.15024,
    "h": 107.6
  },
  "luminance": 0.53937
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CBC742

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

Preview Lab → · Contrast checker → · Palette generator →

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