#BAB323#BAB323

#BAB323 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.9% C 0.151 H 106.5°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#BAB323
RGBrgb(186, 179, 35)
HSLhsl(57, 68%, 43%)
HSVhsv(57, 81%, 73%)
CMYKcmyk(0%, 3.8%, 81.2%, 27.1%)
CIE-LABlab(71.42, -12.80, 67.24)
CIE-LCHlch(71.42, 68.45, 100.78°)
OKLaboklab(74.92% -0.0431 0.1452)
OKLCHoklch(74.92% 0.151 106.5)
XYZxyz(36.6748, 42.8020, 7.9196)
Luminance0.4280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB323 #232ABA
analogous
#BA6823 #BAB323 #75BA23
triadic
#BAB323 #23BAB3 #B323BA
tetradic
#BAB323 #23BA68 #232ABA #BA2375
square
#BAB323 #23BA68 #232ABA #BA2375
split-complementary
#BAB323 #2375BA #6823BA
monochromatic
#535010 #868119 #BAB323 #DBD43F #E5DF73

Accessibility & contrast

On white

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

On black

9.56
#BAB323 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB323
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB323#FFFFFF#000000##000000
##BAB3231.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C6B130
Tritanopia (blue-blind)
#C8A699
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab323;
/* rgb */ color: rgb(186, 179, 35);
/* oklch */ color: oklch(74.9% 0.151 106.5);
Tailwind
colors: {
  custom: {
    50: '#d3c96d',
    500: '#bab323',
    950: '#000000',
  },
}
SCSS
$custom: #bab323;
$custom-light: #d3c96d;
$custom-dark: #000000;
JSON
{
  "hex": "#bab323",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 35
  },
  "hsl": {
    "h": 57.219,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.74924,
    "c": 0.15145,
    "h": 106.5
  },
  "luminance": 0.42801
}

Semantic roles & 50–950 ramp

primary
#BAB323
secondary
#6D72CC
accent
#45EB3D
background
#FDFCF6
surface
#FBF8EC
border
#D4D1C7
text
#151308
muted
#83827A

Preview Lab

Preview with #BAB323

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

Preview Lab → · Contrast checker → · Palette generator →

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