#CAB640#CAB640

#CAB640 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.2% C 0.136 H 99.5°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#CAB640
RGBrgb(202, 182, 64)
HSLhsl(51, 57%, 52%)
HSVhsv(51, 68%, 79%)
CMYKcmyk(0%, 9.9%, 68.3%, 20.8%)
CIE-LABlab(73.79, -6.17, 60.03)
CIE-LCHlch(73.79, 60.35, 95.87°)
OKLaboklab(77.2% -0.0225 0.1346)
OKLCHoklch(77.2% 0.136 99.5)
XYZxyz(42.0124, 46.3846, 11.5897)
Luminance0.4638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB640 #4054CA
analogous
#CA7140 #CAB640 #99CA40
triadic
#CAB640 #40CAB6 #B640CA
tetradic
#CAB640 #40CA71 #4054CA #CA4099
square
#CAB640 #40CA71 #4054CA #CA4099
split-complementary
#CAB640 #4099CA #7140CA
monochromatic
#70651F #A0902C #CAB640 #D7C870 #E5DBA0

Accessibility & contrast

On white

2.04
#CAB640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#CAB640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB640
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB640#FFFFFF#000000##000000
##CAB6401.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B130
Deuteranopia (green-blind)
#CDB947
Tritanopia (blue-blind)
#D9A99E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab640;
/* rgb */ color: rgb(202, 182, 64);
/* oklch */ color: oklch(77.2% 0.136 99.5);
Tailwind
colors: {
  custom: {
    50: '#decb7b',
    500: '#cab640',
    950: '#000000',
  },
}
SCSS
$custom: #cab640;
$custom-light: #decb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#cab640",
  "rgb": {
    "r": 202,
    "g": 182,
    "b": 64
  },
  "hsl": {
    "h": 51.304,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.772,
    "c": 0.13645,
    "h": 99.5
  },
  "luminance": 0.46383
}

Semantic roles & 50–950 ramp

primary
#CAB640
secondary
#959ED1
accent
#5EE048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB640

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

Preview Lab → · Contrast checker → · Palette generator →

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