#BAB42F#BAB42F

#BAB42F is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.2% C 0.146 H 106.8°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#BAB42F
RGBrgb(186, 180, 47)
HSLhsl(57, 60%, 46%)
HSVhsv(57, 75%, 73%)
CMYKcmyk(0%, 3.2%, 74.7%, 27.1%)
CIE-LABlab(71.75, -12.87, 63.88)
CIE-LCHlch(71.75, 65.16, 101.39°)
OKLaboklab(75.21% -0.0423 0.1402)
OKLCHoklch(75.21% 0.146 106.8)
XYZxyz(37.0855, 43.2882, 9.0907)
Luminance0.4329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB42F #2F35BA
analogous
#BA6E2F #BAB42F #7ABA2F
triadic
#BAB42F #2FBAB4 #B42FBA
tetradic
#BAB42F #2FBA6E #2F35BA #BA2F7A
square
#BAB42F #2FBA6E #2F35BA #BA2F7A
split-complementary
#BAB42F #2F7ABA #6E2FBA
monochromatic
#585516 #898523 #BAB42F #D3CE53 #E0DC84

Accessibility & contrast

On white

2.17
#BAB42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#BAB42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB42F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB42F#FFFFFF#000000##000000
##BAB42F1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD12
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#C8A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab42f;
/* rgb */ color: rgb(186, 180, 47);
/* oklch */ color: oklch(75.2% 0.146 106.8);
Tailwind
colors: {
  custom: {
    50: '#d2ca72',
    500: '#bab42f',
    950: '#000000',
  },
}
SCSS
$custom: #bab42f;
$custom-light: #d2ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#bab42f",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 57.41,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75205,
    "c": 0.14647,
    "h": 106.8
  },
  "luminance": 0.43287
}

Semantic roles & 50–950 ramp

primary
#BAB42F
secondary
#7C7FC9
accent
#4CE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB42F

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

Preview Lab → · Contrast checker → · Palette generator →

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