#BAB23C#BAB23C

#BAB23C 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#BAB23C
RGBrgb(186, 178, 60)
HSLhsl(56, 51%, 48%)
HSVhsv(56, 68%, 73%)
CMYKcmyk(0%, 4.3%, 67.7%, 27.1%)
CIE-LABlab(71.29, -11.20, 58.64)
CIE-LCHlch(71.29, 59.70, 100.81°)
OKLaboklab(74.86% -0.0363 0.1315)
OKLCHoklch(74.86% 0.136 105.4)
XYZxyz(36.9871, 42.6075, 10.5498)
Luminance0.4261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB23C #3C44BA
analogous
#BA733C #BAB23C #83BA3C
triadic
#BAB23C #3CBAB2 #B23CBA
tetradic
#BAB23C #3CBA73 #3C44BA #BA3C83
square
#BAB23C #3CBA73 #3C44BA #BA3C83
split-complementary
#BAB23C #3C83BA #733CBA
monochromatic
#5D591E #8C862D #BAB23C #CEC766 #DCD894

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB23C#FFFFFF#000000##000000
##BAB23C1.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)
#C1AC2B
Deuteranopia (green-blind)
#C4B144
Tritanopia (blue-blind)
#C7A69A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab23c;
/* rgb */ color: rgb(186, 178, 60);
/* oklch */ color: oklch(74.9% 0.136 105.4);
Tailwind
colors: {
  custom: {
    50: '#d2c878',
    500: '#bab23c',
    950: '#000000',
  },
}
SCSS
$custom: #bab23c;
$custom-light: #d2c878;
$custom-dark: #000000;
JSON
{
  "hex": "#bab23c",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 60
  },
  "hsl": {
    "h": 56.19,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.74863,
    "c": 0.13639,
    "h": 105.4
  },
  "luminance": 0.42606
}

Semantic roles & 50–950 ramp

primary
#BAB23C
secondary
#8A8EC8
accent
#56DB4D
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #BAB23C

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

Preview Lab → · Contrast checker → · Palette generator →

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