#BAB23F#BAB23F

#BAB23F is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.9% C 0.134 H 105.3°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#BAB23F
RGBrgb(186, 178, 63)
HSLhsl(56, 49%, 49%)
HSVhsv(56, 66%, 73%)
CMYKcmyk(0%, 4.3%, 66.1%, 27.1%)
CIE-LABlab(71.31, -11.03, 57.44)
CIE-LCHlch(71.31, 58.49, 100.87°)
OKLaboklab(74.89% -0.0355 0.1294)
OKLCHoklch(74.89% 0.134 105.3)
XYZxyz(37.0687, 42.6401, 10.9794)
Luminance0.4264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB23F #3F47BA
analogous
#BA753F #BAB23F #85BA3F
triadic
#BAB23F #3FBAB2 #B23FBA
tetradic
#BAB23F #3FBA75 #3F47BA #BA3F85
square
#BAB23F #3FBA75 #3F47BA #BA3F85
split-complementary
#BAB23F #3F85BA #753FBA
monochromatic
#5F5B20 #8C8630 #BAB23F #CCC66A #DCD797

Accessibility & contrast

On white

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

On black

9.53
#BAB23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB23F
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB23F#FFFFFF#000000##000000
##BAB23F1.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC2F
Deuteranopia (green-blind)
#C4B146
Tritanopia (blue-blind)
#C7A69A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab23f;
/* rgb */ color: rgb(186, 178, 63);
/* oklch */ color: oklch(74.9% 0.134 105.3);
Tailwind
colors: {
  custom: {
    50: '#d2c87a',
    500: '#bab23f',
    950: '#000000',
  },
}
SCSS
$custom: #bab23f;
$custom-light: #d2c87a;
$custom-dark: #000000;
JSON
{
  "hex": "#bab23f",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 63
  },
  "hsl": {
    "h": 56.098,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74888,
    "c": 0.13421,
    "h": 105.3
  },
  "luminance": 0.42639
}

Semantic roles & 50–950 ramp

primary
#BAB23F
secondary
#8D91C8
accent
#58D94F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB23F

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

Preview Lab → · Contrast checker → · Palette generator →

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