#CAB742#CAB742

#CAB742 is a light, vivid yellow. Relative luminance 0.468; OKLCH L 77.4% C 0.136 H 100.0°. Best body text is #000000 at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#CAB742
RGBrgb(202, 183, 66)
HSLhsl(52, 56%, 53%)
HSVhsv(52, 67%, 79%)
CMYKcmyk(0%, 9.4%, 67.3%, 20.8%)
CIE-LABlab(74.07, -6.58, 59.51)
CIE-LCHlch(74.07, 59.87, 96.31°)
OKLaboklab(77.43% -0.0235 0.1338)
OKLCHoklch(77.43% 0.136 100)
XYZxyz(42.2758, 46.8188, 11.9633)
Luminance0.4682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB742 #4255CA
analogous
#CA7342 #CAB742 #99CA42
triadic
#CAB742 #42CAB7 #B742CA
tetradic
#CAB742 #42CA73 #4255CA #CA4299
square
#CAB742 #42CA73 #4255CA #CA4299
split-complementary
#CAB742 #4299CA #7342CA
monochromatic
#726620 #A2912D #CAB742 #D7C972 #E5DBA2

Accessibility & contrast

On white

2.03
#CAB742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.36
#CAB742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB742
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB742#FFFFFF#000000##000000
##CAB7421.002.0310.3610.36
#FFFFFF2.031.0021.0021.00
#00000010.3621.001.001.00
##00000010.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B232
Deuteranopia (green-blind)
#CDB949
Tritanopia (blue-blind)
#D9AA9F
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cab742;
/* rgb */ color: rgb(202, 183, 66);
/* oklch */ color: oklch(77.4% 0.136 100.0);
Tailwind
colors: {
  custom: {
    50: '#decc7d',
    500: '#cab742',
    950: '#000000',
  },
}
SCSS
$custom: #cab742;
$custom-light: #decc7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cab742",
  "rgb": {
    "r": 202,
    "g": 183,
    "b": 66
  },
  "hsl": {
    "h": 51.618,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.77426,
    "c": 0.13585,
    "h": 100
  },
  "luminance": 0.46817
}

Semantic roles & 50–950 ramp

primary
#CAB742
secondary
#969FD1
accent
#5DDF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB742

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

Preview Lab → · Contrast checker → · Palette generator →

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