#BAB423#BAB423

#BAB423 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.1% C 0.152 H 107.0°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#BAB423
RGBrgb(186, 180, 35)
HSLhsl(58, 68%, 43%)
HSVhsv(58, 81%, 73%)
CMYKcmyk(0%, 3.2%, 81.2%, 27.1%)
CIE-LABlab(71.69, -13.31, 67.48)
CIE-LCHlch(71.69, 68.78, 101.16°)
OKLaboklab(75.14% -0.0445 0.1457)
OKLCHoklch(75.14% 0.152 107)
XYZxyz(36.8759, 43.2043, 7.9866)
Luminance0.4320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB423 #2329BA
analogous
#BA6823 #BAB423 #74BA23
triadic
#BAB423 #23BAB4 #B423BA
tetradic
#BAB423 #23BA68 #2329BA #BA2374
square
#BAB423 #23BA68 #2329BA #BA2374
split-complementary
#BAB423 #2374BA #6823BA
monochromatic
#535010 #868219 #BAB423 #DBD53F #E5E073

Accessibility & contrast

On white

2.18
#BAB423 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#BAB423 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB423
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB423#FFFFFF#000000##000000
##BAB4231.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C7B230
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab423;
/* rgb */ color: rgb(186, 180, 35);
/* oklch */ color: oklch(75.1% 0.152 107.0);
Tailwind
colors: {
  custom: {
    50: '#d3ca6d',
    500: '#bab423',
    950: '#000000',
  },
}
SCSS
$custom: #bab423;
$custom-light: #d3ca6d;
$custom-dark: #000000;
JSON
{
  "hex": "#bab423",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 35
  },
  "hsl": {
    "h": 57.616,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.75142,
    "c": 0.15235,
    "h": 107
  },
  "luminance": 0.43203
}

Semantic roles & 50–950 ramp

primary
#BAB423
secondary
#6D71CC
accent
#44EB3D
background
#FDFCF6
surface
#FBF8EC
border
#D4D1C7
text
#151308
muted
#83827A

Preview Lab

Preview with #BAB423

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

Preview Lab → · Contrast checker → · Palette generator →

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