#CABB2F#CABB2F

#CABB2F is a light, vivid yellow. Relative luminance 0.483; OKLCH L 78.1% C 0.151 H 102.9°. Best body text is #000000 at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#CABB2F
RGBrgb(202, 187, 47)
HSLhsl(54, 62%, 49%)
HSVhsv(54, 77%, 79%)
CMYKcmyk(0%, 7.4%, 76.7%, 20.8%)
CIE-LABlab(75.02, -9.54, 67.40)
CIE-LCHlch(75.02, 68.07, 98.06°)
OKLaboklab(78.14% -0.0338 0.1471)
OKLCHoklch(78.14% 0.151 102.9)
XYZxyz(42.6425, 48.3043, 9.7663)
Luminance0.4830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CABB2F #2F3ECA
analogous
#CA6E2F #CABB2F #8CCA2F
triadic
#CABB2F #2FCABB #BB2FCA
tetradic
#CABB2F #2FCA6E #2F3ECA #CA2F8C
square
#CABB2F #2FCA6E #2F3ECA #CA2F8C
split-complementary
#CABB2F #2F8CCA #6E2FCA
monochromatic
#675F18 #988D23 #CABB2F #D9CD5D #E5DC8F

Accessibility & contrast

On white

1.97
#CABB2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.66
#CABB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CABB2F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CABB2F#FFFFFF#000000##000000
##CABB2F1.001.9710.6610.66
#FFFFFF1.971.0021.0021.00
#00000010.6621.001.001.00
##00000010.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB50C
Deuteranopia (green-blind)
#D1BC3A
Tritanopia (blue-blind)
#DAADA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cabb2f;
/* rgb */ color: rgb(202, 187, 47);
/* oklch */ color: oklch(78.1% 0.151 102.9);
Tailwind
colors: {
  custom: {
    50: '#decf73',
    500: '#cabb2f',
    950: '#000000',
  },
}
SCSS
$custom: #cabb2f;
$custom-light: #decf73;
$custom-dark: #000000;
JSON
{
  "hex": "#cabb2f",
  "rgb": {
    "r": 202,
    "g": 187,
    "b": 47
  },
  "hsl": {
    "h": 54.194,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.78137,
    "c": 0.15091,
    "h": 102.9
  },
  "luminance": 0.48302
}

Semantic roles & 50–950 ramp

primary
#CABB2F
secondary
#868DCF
accent
#52E542
background
#FEFCF7
surface
#FCF9ED
border
#D5D2C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CABB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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