#BAB62B#BAB62B

#BAB62B is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.6% C 0.150 H 107.8°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#BAB62B
RGBrgb(186, 182, 43)
HSLhsl(58, 62%, 45%)
HSVhsv(58, 77%, 73%)
CMYKcmyk(0%, 2.2%, 76.9%, 27.1%)
CIE-LABlab(72.28, -14.06, 65.66)
CIE-LCHlch(72.28, 67.15, 102.08°)
OKLaboklab(75.62% -0.046 0.1433)
OKLCHoklch(75.62% 0.15 107.8)
XYZxyz(37.4152, 44.0707, 8.8207)
Luminance0.4407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB62B #2B2FBA
analogous
#BA6F2B #BAB62B #76BA2B
triadic
#BAB62B #2BBAB6 #B62BBA
tetradic
#BAB62B #2BBA6F #2B2FBA #BA2B76
square
#BAB62B #2BBA6F #2B2FBA #BA2B76
split-complementary
#BAB62B #2B76BA #6F2BBA
monochromatic
#575514 #888520 #BAB62B #D6D24C #E1DE7E

Accessibility & contrast

On white

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

On black

9.81
#BAB62B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB62B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB62B#FFFFFF#000000##000000
##BAB62B1.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bab62b;
/* rgb */ color: rgb(186, 182, 43);
/* oklch */ color: oklch(75.6% 0.150 107.8);
Tailwind
colors: {
  custom: {
    50: '#d3cb70',
    500: '#bab62b',
    950: '#000000',
  },
}
SCSS
$custom: #bab62b;
$custom-light: #d3cb70;
$custom-dark: #000000;
JSON
{
  "hex": "#bab62b",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 43
  },
  "hsl": {
    "h": 58.322,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.75618,
    "c": 0.15048,
    "h": 107.8
  },
  "luminance": 0.44069
}

Semantic roles & 50–950 ramp

primary
#BAB62B
secondary
#7779CA
accent
#47E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB62B

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

Preview Lab → · Contrast checker → · Palette generator →

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