#BAB04F#BAB04F

#BAB04F is a light, moderate yellow. Relative luminance 0.421; OKLCH L 74.6% C 0.119 H 103.4°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#BAB04F
RGBrgb(186, 176, 79)
HSLhsl(54, 44%, 52%)
HSVhsv(54, 58%, 73%)
CMYKcmyk(0%, 5.4%, 57.5%, 27.1%)
CIE-LABlab(70.91, -8.91, 49.98)
CIE-LCHlch(70.91, 50.77, 100.11°)
OKLaboklab(74.61% -0.0277 0.1159)
OKLCHoklch(74.61% 0.119 103.4)
XYZxyz(37.1876, 42.0556, 13.5543)
Luminance0.4205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB04F #4F59BA
analogous
#BA7B4F #BAB04F #8EBA4F
triadic
#BAB04F #4FBAB0 #B04FBA
tetradic
#BAB04F #4FBA7B #4F59BA #BA4F8E
square
#BAB04F #4FBA7B #4F59BA #BA4F8E
split-complementary
#BAB04F #4F8EBA #7B4FBA
monochromatic
#666128 #928A39 #BAB04F #CBC47B #DCD7A7

Accessibility & contrast

On white

2.23
#BAB04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#BAB04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB04F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB04F#FFFFFF#000000##000000
##BAB04F1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAB45
Deuteranopia (green-blind)
#C1B054
Tritanopia (blue-blind)
#C7A59B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab04f;
/* rgb */ color: rgb(186, 176, 79);
/* oklch */ color: oklch(74.6% 0.119 103.4);
Tailwind
colors: {
  custom: {
    50: '#d1c784',
    500: '#bab04f',
    950: '#000000',
  },
}
SCSS
$custom: #bab04f;
$custom-light: #d1c784;
$custom-dark: #000000;
JSON
{
  "hex": "#bab04f",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 79
  },
  "hsl": {
    "h": 54.393,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.74615,
    "c": 0.11911,
    "h": 103.4
  },
  "luminance": 0.42054
}

Semantic roles & 50–950 ramp

primary
#BAB04F
secondary
#9B9FCA
accent
#60D354
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB04F

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

Preview Lab → · Contrast checker → · Palette generator →

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