#BAB645#BAB645

#BAB645 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 75.8% C 0.134 H 107.3°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#BAB645
RGBrgb(186, 182, 69)
HSLhsl(58, 46%, 50%)
HSVhsv(58, 63%, 73%)
CMYKcmyk(0%, 2.2%, 62.9%, 27.1%)
CIE-LABlab(72.45, -12.72, 56.13)
CIE-LCHlch(72.45, 57.55, 102.77°)
OKLaboklab(75.81% -0.0396 0.1276)
OKLCHoklch(75.81% 0.134 107.3)
XYZxyz(38.0531, 44.3259, 12.1803)
Luminance0.4432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB645 #4549BA
analogous
#BA7C45 #BAB645 #83BA45
triadic
#BAB645 #45BAB6 #B645BA
tetradic
#BAB645 #45BA7C #4549BA #BA4583
square
#BAB645 #45BA7C #4549BA #BA4583
split-complementary
#BAB645 #4583BA #7C45BA
monochromatic
#615F24 #8D8A34 #BAB645 #CBC872 #DBD99E

Accessibility & contrast

On white

2.13
#BAB645 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#BAB645 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB645
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB645#FFFFFF#000000##000000
##BAB6451.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF37
Deuteranopia (green-blind)
#C7B44C
Tritanopia (blue-blind)
#C7AB9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab645;
/* rgb */ color: rgb(186, 182, 69);
/* oklch */ color: oklch(75.8% 0.134 107.3);
Tailwind
colors: {
  custom: {
    50: '#d2cb7e',
    500: '#bab645',
    950: '#000000',
  },
}
SCSS
$custom: #bab645;
$custom-light: #d2cb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab645",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 69
  },
  "hsl": {
    "h": 57.949,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.75808,
    "c": 0.13358,
    "h": 107.3
  },
  "luminance": 0.44325
}

Semantic roles & 50–950 ramp

primary
#BAB645
secondary
#9395C8
accent
#57D652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB645

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

Preview Lab → · Contrast checker → · Palette generator →

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