#CBAC42#CBAC42

#CBAC42 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 75.2% C 0.128 H 92.6°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#CBAC42
RGBrgb(203, 172, 66)
HSLhsl(46, 57%, 53%)
HSVhsv(46, 67%, 80%)
CMYKcmyk(0%, 15.3%, 67.5%, 20.4%)
CIE-LABlab(71.28, -0.37, 56.64)
CIE-LCHlch(71.28, 56.64, 90.38°)
OKLaboklab(75.24% -0.0058 0.1277)
OKLCHoklch(75.24% 0.128 92.6)
XYZxyz(40.3665, 42.5972, 11.2491)
Luminance0.4259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAC42 #4261CB
analogous
#CB6742 #CBAC42 #A6CB42
triadic
#CBAC42 #42CBAC #AC42CB
tetradic
#CBAC42 #42CB67 #4261CB #CB42A6
square
#CBAC42 #42CB67 #4261CB #CB42A6
split-complementary
#CBAC42 #42A6CB #6742CB
monochromatic
#736020 #A3882D #CBAC42 #D8C172 #E5D6A2

Accessibility & contrast

On white

2.21
#CBAC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#CBAC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAC42
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAC42#FFFFFF#000000##000000
##CBAC421.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA935
Deuteranopia (green-blind)
#C6B247
Tritanopia (blue-blind)
#DB9F96
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cbac42;
/* rgb */ color: rgb(203, 172, 66);
/* oklch */ color: oklch(75.2% 0.128 92.6);
Tailwind
colors: {
  custom: {
    50: '#dec47c',
    500: '#cbac42',
    950: '#000000',
  },
}
SCSS
$custom: #cbac42;
$custom-light: #dec47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cbac42",
  "rgb": {
    "r": 203,
    "g": 172,
    "b": 66
  },
  "hsl": {
    "h": 46.423,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.75238,
    "c": 0.12782,
    "h": 92.6
  },
  "luminance": 0.42595
}

Semantic roles & 50–950 ramp

primary
#CBAC42
secondary
#97A4D2
accent
#6AE048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CBAC42

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

Preview Lab → · Contrast checker → · Palette generator →

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