#CABA40#CABA40

#CABA40 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 78.0% C 0.140 H 101.7°. Best body text is #000000 at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#CABA40
RGBrgb(202, 186, 64)
HSLhsl(53, 57%, 52%)
HSVhsv(53, 68%, 79%)
CMYKcmyk(0%, 7.9%, 68.3%, 20.8%)
CIE-LABlab(74.85, -8.24, 61.11)
CIE-LCHlch(74.85, 61.67, 97.68°)
OKLaboklab(78.04% -0.0284 0.1369)
OKLCHoklch(78.04% 0.14 101.7)
XYZxyz(42.8433, 48.0464, 11.8666)
Luminance0.4804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CABA40 #4050CA
analogous
#CA7540 #CABA40 #95CA40
triadic
#CABA40 #40CABA #BA40CA
tetradic
#CABA40 #40CA75 #4050CA #CA4095
square
#CABA40 #40CA75 #4050CA #CA4095
split-complementary
#CABA40 #4095CA #7540CA
monochromatic
#70671F #A0932C #CABA40 #D7CB70 #E5DDA0

Accessibility & contrast

On white

1.98
#CABA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.61
#CABA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CABA40
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CABA40#FFFFFF#000000##000000
##CABA401.001.9810.6110.61
#FFFFFF1.981.0021.0021.00
#00000010.6121.001.001.00
##00000010.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB42F
Deuteranopia (green-blind)
#D0BB47
Tritanopia (blue-blind)
#D9ADA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #caba40;
/* rgb */ color: rgb(202, 186, 64);
/* oklch */ color: oklch(78.0% 0.140 101.7);
Tailwind
colors: {
  custom: {
    50: '#dece7c',
    500: '#caba40',
    950: '#000000',
  },
}
SCSS
$custom: #caba40;
$custom-light: #dece7c;
$custom-dark: #000000;
JSON
{
  "hex": "#caba40",
  "rgb": {
    "r": 202,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 53.043,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.78041,
    "c": 0.13977,
    "h": 101.7
  },
  "luminance": 0.48045
}

Semantic roles & 50–950 ramp

primary
#CABA40
secondary
#959CD1
accent
#5AE048
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CABA40

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

Preview Lab → · Contrast checker → · Palette generator →

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