#CABF40#CABF40

#CABF40 is a light, vivid yellow. Relative luminance 0.502; OKLCH L 79.1% C 0.144 H 104.3°. Best body text is #000000 at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#CABF40
RGBrgb(202, 191, 64)
HSLhsl(55, 57%, 52%)
HSVhsv(55, 68%, 79%)
CMYKcmyk(0%, 5.4%, 68.3%, 20.8%)
CIE-LABlab(76.19, -10.81, 62.46)
CIE-LCHlch(76.19, 63.39, 99.82°)
OKLaboklab(79.1% -0.0357 0.1397)
OKLCHoklch(79.1% 0.144 104.3)
XYZxyz(43.9151, 50.1900, 12.2239)
Luminance0.5019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CABF40 #404BCA
analogous
#CA7A40 #CABF40 #90CA40
triadic
#CABF40 #40CABF #BF40CA
tetradic
#CABF40 #40CA7A #404BCA #CA4090
square
#CABF40 #40CA7A #404BCA #CA4090
split-complementary
#CABF40 #4090CA #7A40CA
monochromatic
#706A1F #A0972C #CABF40 #D7CF70 #E5DFA0

Accessibility & contrast

On white

1.90
#CABF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.04
#CABF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CABF40
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CABF40#FFFFFF#000000##000000
##CABF401.001.9011.0411.04
#FFFFFF1.901.0021.0021.00
#00000011.0421.001.001.00
##00000011.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#D3BF48
Tritanopia (blue-blind)
#D9B2A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #cabf40;
/* rgb */ color: rgb(202, 191, 64);
/* oklch */ color: oklch(79.1% 0.144 104.3);
Tailwind
colors: {
  custom: {
    50: '#ded27c',
    500: '#cabf40',
    950: '#000000',
  },
}
SCSS
$custom: #cabf40;
$custom-light: #ded27c;
$custom-dark: #000000;
JSON
{
  "hex": "#cabf40",
  "rgb": {
    "r": 202,
    "g": 191,
    "b": 64
  },
  "hsl": {
    "h": 55.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.791,
    "c": 0.14418,
    "h": 104.3
  },
  "luminance": 0.50188
}

Semantic roles & 50–950 ramp

primary
#CABF40
secondary
#353A7A
accent
#54E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CABF40

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

Preview Lab → · Contrast checker → · Palette generator →

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