#BAB23D#BAB23D

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

Color values

HEX#BAB23D
RGBrgb(186, 178, 61)
HSLhsl(56, 51%, 48%)
HSVhsv(56, 67%, 73%)
CMYKcmyk(0%, 4.3%, 67.2%, 27.1%)
CIE-LABlab(71.30, -11.14, 58.24)
CIE-LCHlch(71.30, 59.30, 100.83°)
OKLaboklab(74.87% -0.036 0.1308)
OKLCHoklch(74.87% 0.136 105.4)
XYZxyz(37.0138, 42.6181, 10.6904)
Luminance0.4262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB23D #3D45BA
analogous
#BA733D #BAB23D #83BA3D
triadic
#BAB23D #3DBAB2 #B23DBA
tetradic
#BAB23D #3DBA73 #3D45BA #BA3D83
square
#BAB23D #3DBA73 #3D45BA #BA3D83
split-complementary
#BAB23D #3D83BA #733DBA
monochromatic
#5E5A1F #8C862E #BAB23D #CDC767 #DCD895

Accessibility & contrast

On white

2.21
#BAB23D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#BAB23D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB23D
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB23D#FFFFFF#000000##000000
##BAB23D1.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bab23d;
/* rgb */ color: rgb(186, 178, 61);
/* oklch */ color: oklch(74.9% 0.136 105.4);
Tailwind
colors: {
  custom: {
    50: '#d2c879',
    500: '#bab23d',
    950: '#000000',
  },
}
SCSS
$custom: #bab23d;
$custom-light: #d2c879;
$custom-dark: #000000;
JSON
{
  "hex": "#bab23d",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 61
  },
  "hsl": {
    "h": 56.16,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.74871,
    "c": 0.13567,
    "h": 105.4
  },
  "luminance": 0.42617
}

Semantic roles & 50–950 ramp

primary
#BAB23D
secondary
#8B8FC8
accent
#57DA4E
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #BAB23D

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

Preview Lab → · Contrast checker → · Palette generator →

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