#CABF2F#CABF2F

#CABF2F is a light, vivid yellow. Relative luminance 0.500; OKLCH L 79.0% C 0.154 H 104.9°. Best body text is #000000 at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#CABF2F
RGBrgb(202, 191, 47)
HSLhsl(56, 62%, 49%)
HSVhsv(56, 77%, 79%)
CMYKcmyk(0%, 5.4%, 76.7%, 20.8%)
CIE-LABlab(76.08, -11.59, 68.37)
CIE-LCHlch(76.08, 69.35, 99.62°)
OKLaboklab(78.99% -0.0395 0.1492)
OKLCHoklch(78.99% 0.154 104.9)
XYZxyz(43.5029, 50.0251, 10.0531)
Luminance0.5002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CABF2F #2F3ACA
analogous
#CA722F #CABF2F #88CA2F
triadic
#CABF2F #2FCABF #BF2FCA
tetradic
#CABF2F #2FCA72 #2F3ACA #CA2F88
square
#CABF2F #2FCA72 #2F3ACA #CA2F88
split-complementary
#CABF2F #2F88CA #722FCA
monochromatic
#676118 #989023 #CABF2F #D9D05D #E5DF8F

Accessibility & contrast

On white

1.91
#CABF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.00
#CABF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CABF2F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CABF2F#FFFFFF#000000##000000
##CABF2F1.001.9111.0011.00
#FFFFFF1.911.0021.0021.00
#00000011.0021.001.001.00
##00000011.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B808
Deuteranopia (green-blind)
#D4BE3A
Tritanopia (blue-blind)
#D9B2A4
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #cabf2f;
/* rgb */ color: rgb(202, 191, 47);
/* oklch */ color: oklch(79.0% 0.154 104.9);
Tailwind
colors: {
  custom: {
    50: '#ded173',
    500: '#cabf2f',
    950: '#000000',
  },
}
SCSS
$custom: #cabf2f;
$custom-light: #ded173;
$custom-dark: #000000;
JSON
{
  "hex": "#cabf2f",
  "rgb": {
    "r": 202,
    "g": 191,
    "b": 47
  },
  "hsl": {
    "h": 55.742,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.78987,
    "c": 0.15431,
    "h": 104.9
  },
  "luminance": 0.50023
}

Semantic roles & 50–950 ramp

primary
#CABF2F
secondary
#2C3171
accent
#4EE542
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CABF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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