#BAB631#BAB631

#BAB631 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.7% C 0.147 H 107.7°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#BAB631
RGBrgb(186, 182, 49)
HSLhsl(58, 58%, 46%)
HSVhsv(58, 74%, 73%)
CMYKcmyk(0%, 2.2%, 73.7%, 27.1%)
CIE-LABlab(72.31, -13.81, 63.72)
CIE-LCHlch(72.31, 65.20, 102.22°)
OKLaboklab(75.65% -0.0447 0.1403)
OKLCHoklch(75.65% 0.147 107.7)
XYZxyz(37.5335, 44.1180, 9.4437)
Luminance0.4412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB631 #3135BA
analogous
#BA7131 #BAB631 #79BA31
triadic
#BAB631 #31BAB6 #B631BA
tetradic
#BAB631 #31BA71 #3135BA #BA3179
square
#BAB631 #31BA71 #3135BA #BA3179
split-complementary
#BAB631 #3179BA #7131BA
monochromatic
#595717 #8A8724 #BAB631 #D2CF56 #DFDD86

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB631#FFFFFF#000000##000000
##BAB6311.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)
#C5AF16
Deuteranopia (green-blind)
#C8B33B
Tritanopia (blue-blind)
#C8AA9D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab631;
/* rgb */ color: rgb(186, 182, 49);
/* oklch */ color: oklch(75.7% 0.147 107.7);
Tailwind
colors: {
  custom: {
    50: '#d2cb73',
    500: '#bab631',
    950: '#000000',
  },
}
SCSS
$custom: #bab631;
$custom-light: #d2cb73;
$custom-dark: #000000;
JSON
{
  "hex": "#bab631",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 49
  },
  "hsl": {
    "h": 58.248,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.75653,
    "c": 0.14724,
    "h": 107.7
  },
  "luminance": 0.44117
}

Semantic roles & 50–950 ramp

primary
#BAB631
secondary
#7E80C9
accent
#4BE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB631

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

Preview Lab → · Contrast checker → · Palette generator →

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