#BABB2F#BABB2F

#BABB2F is a light, vivid yellow. Relative luminance 0.462; OKLCH L 76.7% C 0.153 H 109.9°. Best body text is #000000 at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#BABB2F
RGBrgb(186, 187, 47)
HSLhsl(60, 60%, 46%)
HSVhsv(60, 75%, 73%)
CMYKcmyk(0.5%, 0%, 74.9%, 26.7%)
CIE-LABlab(73.67, -16.43, 65.66)
CIE-LCHlch(73.67, 67.69, 104.05°)
OKLaboklab(76.74% -0.0523 0.144)
OKLCHoklch(76.74% 0.153 109.9)
XYZxyz(38.5345, 46.1861, 9.5737)
Luminance0.4618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABB2F #302FBB
analogous
#BB762F #BABB2F #74BB2F
triadic
#BABB2F #2FBABB #BB2FBA
tetradic
#BABB2F #2FBB76 #302FBB #BB2F74
square
#BABB2F #2FBB76 #302FBB #BB2F74
split-complementary
#BABB2F #2F74BB #762FBB
monochromatic
#595916 #898A23 #BABB2F #D3D453 #DFE084

Accessibility & contrast

On white

2.05
#BABB2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.24
#BABB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABB2F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABB2F#FFFFFF#000000##000000
##BABB2F1.002.0510.2410.24
#FFFFFF2.051.0021.0021.00
#00000010.2421.001.001.00
##00000010.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB30D
Deuteranopia (green-blind)
#CCB73B
Tritanopia (blue-blind)
#C7AFA1
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #babb2f;
/* rgb */ color: rgb(186, 187, 47);
/* oklch */ color: oklch(76.7% 0.153 109.9);
Tailwind
colors: {
  custom: {
    50: '#d2cf73',
    500: '#babb2f',
    950: '#000000',
  },
}
SCSS
$custom: #babb2f;
$custom-light: #d2cf73;
$custom-dark: #000000;
JSON
{
  "hex": "#babb2f",
  "rgb": {
    "r": 186,
    "g": 187,
    "b": 47
  },
  "hsl": {
    "h": 60.429,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.76735,
    "c": 0.15321,
    "h": 109.9
  },
  "luminance": 0.46185
}

Semantic roles & 50–950 ramp

primary
#BABB2F
secondary
#7D7CC9
accent
#45E346
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BABB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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