#CAB140#CAB140

#CAB140 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 76.2% C 0.133 H 96.5°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#CAB140
RGBrgb(202, 177, 64)
HSLhsl(49, 57%, 52%)
HSVhsv(49, 68%, 79%)
CMYKcmyk(0%, 12.4%, 68.3%, 20.8%)
CIE-LABlab(72.48, -3.56, 58.69)
CIE-LCHlch(72.48, 58.79, 93.47°)
OKLaboklab(76.16% -0.0151 0.1317)
OKLCHoklch(76.16% 0.133 96.5)
XYZxyz(41.0066, 44.3731, 11.2544)
Luminance0.4437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB140 #4059CA
analogous
#CA6C40 #CAB140 #9ECA40
triadic
#CAB140 #40CAB1 #B140CA
tetradic
#CAB140 #40CA6C #4059CA #CA409E
square
#CAB140 #40CA6C #4059CA #CA409E
split-complementary
#CAB140 #409ECA #6C40CA
monochromatic
#70621F #A08B2C #CAB140 #D7C570 #E5D8A0

Accessibility & contrast

On white

2.13
#CAB140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.87
#CAB140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB140
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB140#FFFFFF#000000##000000
##CAB1401.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD31
Deuteranopia (green-blind)
#C9B546
Tritanopia (blue-blind)
#DAA49A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab140;
/* rgb */ color: rgb(202, 177, 64);
/* oklch */ color: oklch(76.2% 0.133 96.5);
Tailwind
colors: {
  custom: {
    50: '#dec87b',
    500: '#cab140',
    950: '#000000',
  },
}
SCSS
$custom: #cab140;
$custom-light: #dec87b;
$custom-dark: #000000;
JSON
{
  "hex": "#cab140",
  "rgb": {
    "r": 202,
    "g": 177,
    "b": 64
  },
  "hsl": {
    "h": 49.13,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.76156,
    "c": 0.13258,
    "h": 96.5
  },
  "luminance": 0.44371
}

Semantic roles & 50–950 ramp

primary
#CAB140
secondary
#95A0D1
accent
#63E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB140

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

Preview Lab → · Contrast checker → · Palette generator →

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