#BAB04D#BAB04D

#BAB04D is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.6% C 0.121 H 103.6°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#BAB04D
RGBrgb(186, 176, 77)
HSLhsl(54, 44%, 52%)
HSVhsv(54, 59%, 73%)
CMYKcmyk(0%, 5.4%, 58.6%, 27.1%)
CIE-LABlab(70.89, -9.06, 50.88)
CIE-LCHlch(70.89, 51.68, 100.10°)
OKLaboklab(74.59% -0.0283 0.1175)
OKLCHoklch(74.59% 0.121 103.6)
XYZxyz(37.1159, 42.0269, 13.1766)
Luminance0.4203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB04D #4D57BA
analogous
#BA7A4D #BAB04D #8EBA4D
triadic
#BAB04D #4DBAB0 #B04DBA
tetradic
#BAB04D #4DBA7A #4D57BA #BA4D8E
square
#BAB04D #4DBA7A #4D57BA #BA4D8E
split-complementary
#BAB04D #4D8EBA #7A4DBA
monochromatic
#656027 #918938 #BAB04D #CBC479 #DCD7A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB04D#FFFFFF#000000##000000
##BAB04D1.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)
#BEAB42
Deuteranopia (green-blind)
#C2B052
Tritanopia (blue-blind)
#C7A59A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab04d;
/* rgb */ color: rgb(186, 176, 77);
/* oklch */ color: oklch(74.6% 0.121 103.6);
Tailwind
colors: {
  custom: {
    50: '#d1c782',
    500: '#bab04d',
    950: '#000000',
  },
}
SCSS
$custom: #bab04d;
$custom-light: #d1c782;
$custom-dark: #000000;
JSON
{
  "hex": "#bab04d",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 77
  },
  "hsl": {
    "h": 54.495,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.74593,
    "c": 0.1209,
    "h": 103.6
  },
  "luminance": 0.42026
}

Semantic roles & 50–950 ramp

primary
#BAB04D
secondary
#999EC9
accent
#60D454
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB04D

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

Preview Lab → · Contrast checker → · Palette generator →

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