#BAB245#BAB245

#BAB245 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.9% C 0.130 H 105.1°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#BAB245
RGBrgb(186, 178, 69)
HSLhsl(56, 46%, 50%)
HSVhsv(56, 63%, 73%)
CMYKcmyk(0%, 4.3%, 62.9%, 27.1%)
CIE-LABlab(71.36, -10.66, 54.97)
CIE-LCHlch(71.36, 55.99, 100.97°)
OKLaboklab(74.94% -0.0338 0.1251)
OKLCHoklch(74.94% 0.13 105.1)
XYZxyz(37.2456, 42.7109, 11.9112)
Luminance0.4271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB245 #454DBA
analogous
#BA7745 #BAB245 #88BA45
triadic
#BAB245 #45BAB2 #B245BA
tetradic
#BAB245 #45BA77 #454DBA #BA4588
square
#BAB245 #45BA77 #454DBA #BA4588
split-complementary
#BAB245 #4588BA #7745BA
monochromatic
#615D24 #8D8734 #BAB245 #CBC472 #DBD79E

Accessibility & contrast

On white

2.20
#BAB245 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#BAB245 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB245
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB245#FFFFFF#000000##000000
##BAB2451.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC38
Deuteranopia (green-blind)
#C4B14B
Tritanopia (blue-blind)
#C7A79B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab245;
/* rgb */ color: rgb(186, 178, 69);
/* oklch */ color: oklch(74.9% 0.130 105.1);
Tailwind
colors: {
  custom: {
    50: '#d2c87e',
    500: '#bab245',
    950: '#000000',
  },
}
SCSS
$custom: #bab245;
$custom-light: #d2c87e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab245",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 69
  },
  "hsl": {
    "h": 55.897,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.74942,
    "c": 0.1296,
    "h": 105.1
  },
  "luminance": 0.4271
}

Semantic roles & 50–950 ramp

primary
#BAB245
secondary
#9397C8
accent
#5BD652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB245

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

Preview Lab → · Contrast checker → · Palette generator →

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