#BAB62C#BAB62C

#BAB62C 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.82:1 contrast (WCAG AA passes).

Color values

HEX#BAB62C
RGBrgb(186, 182, 44)
HSLhsl(58, 62%, 45%)
HSVhsv(58, 76%, 73%)
CMYKcmyk(0%, 2.2%, 76.3%, 27.1%)
CIE-LABlab(72.28, -14.02, 65.35)
CIE-LCHlch(72.28, 66.84, 102.11°)
OKLaboklab(75.62% -0.0458 0.1428)
OKLCHoklch(75.62% 0.15 107.8)
XYZxyz(37.4338, 44.0781, 8.9185)
Luminance0.4408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB62C #2C30BA
analogous
#BA6F2C #BAB62C #77BA2C
triadic
#BAB62C #2CBAB6 #B62CBA
tetradic
#BAB62C #2CBA6F #2C30BA #BA2C77
square
#BAB62C #2CBA6F #2C30BA #BA2C77
split-complementary
#BAB62C #2C77BA #6F2CBA
monochromatic
#575515 #898620 #BAB62C #D5D14E #E1DE80

Accessibility & contrast

On white

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

On black

9.82
#BAB62C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB62C
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB62C#FFFFFF#000000##000000
##BAB62C1.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bab62c;
/* rgb */ color: rgb(186, 182, 44);
/* oklch */ color: oklch(75.6% 0.150 107.8);
Tailwind
colors: {
  custom: {
    50: '#d3cb71',
    500: '#bab62c',
    950: '#000000',
  },
}
SCSS
$custom: #bab62c;
$custom-light: #d3cb71;
$custom-dark: #000000;
JSON
{
  "hex": "#bab62c",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 44
  },
  "hsl": {
    "h": 58.31,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.75624,
    "c": 0.14996,
    "h": 107.8
  },
  "luminance": 0.44077
}

Semantic roles & 50–950 ramp

primary
#BAB62C
secondary
#787BCA
accent
#48E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB62C

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

Preview Lab → · Contrast checker → · Palette generator →

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