#BAB523#BAB523

#BAB523 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.4% C 0.153 H 107.5°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#BAB523
RGBrgb(186, 181, 35)
HSLhsl(58, 68%, 43%)
HSVhsv(58, 81%, 73%)
CMYKcmyk(0%, 2.7%, 81.2%, 27.1%)
CIE-LABlab(71.97, -13.83, 67.71)
CIE-LCHlch(71.97, 69.11, 101.54°)
OKLaboklab(75.36% -0.046 0.1462)
OKLCHoklch(75.36% 0.153 107.5)
XYZxyz(37.0785, 43.6095, 8.0541)
Luminance0.4361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB523 #2328BA
analogous
#BA6923 #BAB523 #73BA23
triadic
#BAB523 #23BAB5 #B523BA
tetradic
#BAB523 #23BA69 #2328BA #BA2373
square
#BAB523 #23BA69 #2328BA #BA2373
split-complementary
#BAB523 #2373BA #6923BA
monochromatic
#535110 #868319 #BAB523 #DBD63F #E5E173

Accessibility & contrast

On white

2.16
#BAB523 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#BAB523 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB523
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB523#FFFFFF#000000##000000
##BAB5231.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C7B331
Tritanopia (blue-blind)
#C8A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab523;
/* rgb */ color: rgb(186, 181, 35);
/* oklch */ color: oklch(75.4% 0.153 107.5);
Tailwind
colors: {
  custom: {
    50: '#d3ca6d',
    500: '#bab523',
    950: '#000000',
  },
}
SCSS
$custom: #bab523;
$custom-light: #d3ca6d;
$custom-dark: #000000;
JSON
{
  "hex": "#bab523",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 35
  },
  "hsl": {
    "h": 58.013,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.7536,
    "c": 0.15326,
    "h": 107.5
  },
  "luminance": 0.43608
}

Semantic roles & 50–950 ramp

primary
#BAB523
secondary
#6D70CC
accent
#42EB3D
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB523

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

Preview Lab → · Contrast checker → · Palette generator →

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