#CBC542#CBC542

#CBC542 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.5% C 0.148 H 106.7°. Best body text is #000000 at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#CBC542
RGBrgb(203, 197, 66)
HSLhsl(57, 57%, 53%)
HSVhsv(57, 67%, 80%)
CMYKcmyk(0%, 3%, 67.5%, 20.4%)
CIE-LABlab(77.89, -13.33, 63.43)
CIE-LCHlch(77.89, 64.81, 101.87°)
OKLaboklab(80.48% -0.0427 0.142)
OKLCHoklch(80.48% 0.148 106.7)
XYZxyz(45.5799, 53.0239, 12.9869)
Luminance0.5302 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC542 #4248CB
analogous
#CB8042 #CBC542 #8DCB42
triadic
#CBC542 #42CBC5 #C542CB
tetradic
#CBC542 #42CB80 #4248CB #CB428D
square
#CBC542 #42CB80 #4248CB #CB428D
split-complementary
#CBC542 #428DCB #8042CB
monochromatic
#736F20 #A39E2D #CBC542 #D8D472 #E5E2A2

Accessibility & contrast

On white

1.81
#CBC542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.60
#CBC542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC542
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC542#FFFFFF#000000##000000
##CBC5421.001.8111.6011.60
#FFFFFF1.811.0021.0021.00
#00000011.6021.001.001.00
##00000011.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE2F
Deuteranopia (green-blind)
#D8C34B
Tritanopia (blue-blind)
#D9B8AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cbc542;
/* rgb */ color: rgb(203, 197, 66);
/* oklch */ color: oklch(80.5% 0.148 106.7);
Tailwind
colors: {
  custom: {
    50: '#ded67e',
    500: '#cbc542',
    950: '#000000',
  },
}
SCSS
$custom: #cbc542;
$custom-light: #ded67e;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc542",
  "rgb": {
    "r": 203,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 57.372,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.80481,
    "c": 0.14831,
    "h": 106.7
  },
  "luminance": 0.53022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CBC542

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

Preview Lab → · Contrast checker → · Palette generator →

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