#CBAA42#CBAA42

#CBAA42 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.8% C 0.127 H 91.2°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CBAA42
RGBrgb(203, 170, 66)
HSLhsl(46, 57%, 53%)
HSVhsv(46, 67%, 80%)
CMYKcmyk(0%, 16.3%, 67.5%, 20.4%)
CIE-LABlab(70.76, 0.69, 56.09)
CIE-LCHlch(70.76, 56.10, 89.30°)
OKLaboklab(74.83% -0.0027 0.1265)
OKLCHoklch(74.83% 0.127 91.2)
XYZxyz(39.9888, 41.8416, 11.1232)
Luminance0.4184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAA42 #4263CB
analogous
#CB6542 #CBAA42 #A8CB42
triadic
#CBAA42 #42CBAA #AA42CB
tetradic
#CBAA42 #42CB65 #4263CB #CB42A8
square
#CBAA42 #42CB65 #4263CB #CB42A8
split-complementary
#CBAA42 #42A8CB #6542CB
monochromatic
#735F20 #A3872D #CBAA42 #D8C072 #E5D5A2

Accessibility & contrast

On white

2.24
#CBAA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#CBAA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAA42
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAA42#FFFFFF#000000##000000
##CBAA421.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA835
Deuteranopia (green-blind)
#C4B147
Tritanopia (blue-blind)
#DB9D94
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cbaa42;
/* rgb */ color: rgb(203, 170, 66);
/* oklch */ color: oklch(74.8% 0.127 91.2);
Tailwind
colors: {
  custom: {
    50: '#dec37b',
    500: '#cbaa42',
    950: '#000000',
  },
}
SCSS
$custom: #cbaa42;
$custom-light: #dec37b;
$custom-dark: #000000;
JSON
{
  "hex": "#cbaa42",
  "rgb": {
    "r": 203,
    "g": 170,
    "b": 66
  },
  "hsl": {
    "h": 45.547,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.74828,
    "c": 0.12657,
    "h": 91.2
  },
  "luminance": 0.41839
}

Semantic roles & 50–950 ramp

primary
#CBAA42
secondary
#97A5D2
accent
#6CE048
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CBAA42

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

Preview Lab → · Contrast checker → · Palette generator →

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