#BAB640#BAB640

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

Color values

HEX#BAB640
RGBrgb(186, 182, 64)
HSLhsl(58, 49%, 49%)
HSVhsv(58, 66%, 73%)
CMYKcmyk(0%, 2.2%, 65.6%, 27.1%)
CIE-LABlab(72.41, -13.03, 58.17)
CIE-LCHlch(72.41, 59.61, 102.62°)
OKLaboklab(75.76% -0.0411 0.1311)
OKLCHoklch(75.76% 0.137 107.4)
XYZxyz(37.9044, 44.2664, 11.3971)
Luminance0.4426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB640 #4044BA
analogous
#BA7940 #BAB640 #81BA40
triadic
#BAB640 #40BAB6 #B640BA
tetradic
#BAB640 #40BA79 #4044BA #BA4081
square
#BAB640 #40BA79 #4044BA #BA4081
split-complementary
#BAB640 #4081BA #7940BA
monochromatic
#5F5D21 #8C8930 #BAB640 #CCC96B #DCDA99

Accessibility & contrast

On white

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

On black

9.85
#BAB640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB640
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB640#FFFFFF#000000##000000
##BAB6401.002.139.859.85
#FFFFFF2.131.0021.0021.00
#0000009.8521.001.001.00
##0000009.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF30
Deuteranopia (green-blind)
#C7B448
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab640;
/* rgb */ color: rgb(186, 182, 64);
/* oklch */ color: oklch(75.8% 0.137 107.4);
Tailwind
colors: {
  custom: {
    50: '#d2cb7b',
    500: '#bab640',
    950: '#000000',
  },
}
SCSS
$custom: #bab640;
$custom-light: #d2cb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#bab640",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 64
  },
  "hsl": {
    "h": 58.033,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.75764,
    "c": 0.1374,
    "h": 107.4
  },
  "luminance": 0.44265
}

Semantic roles & 50–950 ramp

primary
#BAB640
secondary
#8E90C8
accent
#54D84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB640

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

Preview Lab → · Contrast checker → · Palette generator →

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