#BAB947#BAB947

#BAB947 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 76.5% C 0.135 H 108.7°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#BAB947
RGBrgb(186, 185, 71)
HSLhsl(59, 45%, 50%)
HSVhsv(59, 62%, 73%)
CMYKcmyk(0%, 0.5%, 61.8%, 27.1%)
CIE-LABlab(73.28, -14.12, 56.16)
CIE-LCHlch(73.28, 57.91, 104.11°)
OKLaboklab(76.48% -0.0434 0.1279)
OKLCHoklch(76.48% 0.135 108.7)
XYZxyz(38.7372, 45.5931, 12.7198)
Luminance0.4559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB947 #4748BA
analogous
#BA7F47 #BAB947 #82BA47
triadic
#BAB947 #47BAB9 #B947BA
tetradic
#BAB947 #47BA7F #4748BA #BA4782
square
#BAB947 #47BA7F #4748BA #BA4782
split-complementary
#BAB947 #4782BA #7F47BA
monochromatic
#626125 #8E8E35 #BAB947 #CBCA74 #DBDBA0

Accessibility & contrast

On white

2.08
#BAB947 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.12
#BAB947 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB947
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB947#FFFFFF#000000##000000
##BAB9471.002.0810.1210.12
#FFFFFF2.081.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B239
Deuteranopia (green-blind)
#C9B64E
Tritanopia (blue-blind)
#C7AEA1
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab947;
/* rgb */ color: rgb(186, 185, 71);
/* oklch */ color: oklch(76.5% 0.135 108.7);
Tailwind
colors: {
  custom: {
    50: '#d2cd7f',
    500: '#bab947',
    950: '#000000',
  },
}
SCSS
$custom: #bab947;
$custom-light: #d2cd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#bab947",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 71
  },
  "hsl": {
    "h": 59.478,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.76479,
    "c": 0.1351,
    "h": 108.7
  },
  "luminance": 0.45592
}

Semantic roles & 50–950 ramp

primary
#BAB947
secondary
#9595C8
accent
#54D553
background
#FDFCF8
surface
#FAF9EF
border
#D3D2CA
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB947

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

Preview Lab → · Contrast checker → · Palette generator →

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