#BAB623#BAB623

#BAB623 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.6% C 0.154 H 107.9°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#BAB623
RGBrgb(186, 182, 35)
HSLhsl(58, 68%, 43%)
HSVhsv(58, 81%, 73%)
CMYKcmyk(0%, 2.2%, 81.2%, 27.1%)
CIE-LABlab(72.24, -14.34, 67.95)
CIE-LCHlch(72.24, 69.44, 101.91°)
OKLaboklab(75.58% -0.0474 0.1467)
OKLCHoklch(75.58% 0.154 107.9)
XYZxyz(37.2826, 44.0177, 8.1222)
Luminance0.4402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB623 #2327BA
analogous
#BA6B23 #BAB623 #72BA23
triadic
#BAB623 #23BAB6 #B623BA
tetradic
#BAB623 #23BA6B #2327BA #BA2372
square
#BAB623 #23BA6B #2327BA #BA2372
split-complementary
#BAB623 #2372BA #6B23BA
monochromatic
#535110 #868419 #BAB623 #DBD73F #E5E273

Accessibility & contrast

On white

2.14
#BAB623 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#BAB623 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB623
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB623#FFFFFF#000000##000000
##BAB6231.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AE00
Deuteranopia (green-blind)
#C8B331
Tritanopia (blue-blind)
#C8AA9C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab623;
/* rgb */ color: rgb(186, 182, 35);
/* oklch */ color: oklch(75.6% 0.154 107.9);
Tailwind
colors: {
  custom: {
    50: '#d3cb6d',
    500: '#bab623',
    950: '#000000',
  },
}
SCSS
$custom: #bab623;
$custom-light: #d3cb6d;
$custom-dark: #000000;
JSON
{
  "hex": "#bab623",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 35
  },
  "hsl": {
    "h": 58.411,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.75578,
    "c": 0.15417,
    "h": 107.9
  },
  "luminance": 0.44016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BAB623

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

Preview Lab → · Contrast checker → · Palette generator →

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