#BAB92D#BAB92D

#BAB92D is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.3% C 0.152 H 109.1°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#BAB92D
RGBrgb(186, 185, 45)
HSLhsl(60, 61%, 45%)
HSVhsv(60, 76%, 73%)
CMYKcmyk(0%, 0.5%, 75.8%, 27.1%)
CIE-LABlab(73.11, -15.50, 65.79)
CIE-LCHlch(73.11, 67.59, 103.26°)
OKLaboklab(76.29% -0.0498 0.1439)
OKLCHoklch(76.29% 0.152 109.1)
XYZxyz(38.0738, 45.3277, 9.2256)
Luminance0.4533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB92D #2D2EBA
analogous
#BA722D #BAB92D #75BA2D
triadic
#BAB92D #2DBAB9 #B92DBA
tetradic
#BAB92D #2DBA72 #2D2EBA #BA2D75
square
#BAB92D #2DBA72 #2D2EBA #BA2D75
split-complementary
#BAB92D #2D75BA #722DBA
monochromatic
#575715 #898821 #BAB92D #D5D450 #E0E081

Accessibility & contrast

On white

2.09
#BAB92D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#BAB92D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB92D
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB92D#FFFFFF#000000##000000
##BAB92D1.002.0910.0710.07
#FFFFFF2.091.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B108
Deuteranopia (green-blind)
#CAB639
Tritanopia (blue-blind)
#C8AD9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab92d;
/* rgb */ color: rgb(186, 185, 45);
/* oklch */ color: oklch(76.3% 0.152 109.1);
Tailwind
colors: {
  custom: {
    50: '#d3cd72',
    500: '#bab92d',
    950: '#000000',
  },
}
SCSS
$custom: #bab92d;
$custom-light: #d3cd72;
$custom-dark: #000000;
JSON
{
  "hex": "#bab92d",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 45
  },
  "hsl": {
    "h": 59.574,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.76285,
    "c": 0.15231,
    "h": 109.1
  },
  "luminance": 0.45326
}

Semantic roles & 50–950 ramp

primary
#BAB92D
secondary
#797AC9
accent
#45E444
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB92D

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

Preview Lab → · Contrast checker → · Palette generator →

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