#BAB940#BAB940

#BAB940 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.4% C 0.140 H 108.8°. Best body text is #000000 at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#BAB940
RGBrgb(186, 185, 64)
HSLhsl(60, 49%, 49%)
HSVhsv(60, 66%, 73%)
CMYKcmyk(0%, 0.5%, 65.6%, 27.1%)
CIE-LABlab(73.23, -14.56, 59.01)
CIE-LCHlch(73.23, 60.78, 103.86°)
OKLaboklab(76.42% -0.0454 0.1329)
OKLCHoklch(76.42% 0.14 108.8)
XYZxyz(38.5254, 45.5083, 11.6041)
Luminance0.4551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB940 #4041BA
analogous
#BA7C40 #BAB940 #7EBA40
triadic
#BAB940 #40BAB9 #B940BA
tetradic
#BAB940 #40BA7C #4041BA #BA407E
square
#BAB940 #40BA7C #4041BA #BA407E
split-complementary
#BAB940 #407EBA #7C40BA
monochromatic
#5F5E21 #8C8C30 #BAB940 #CCCB6B #DCDB99

Accessibility & contrast

On white

2.08
#BAB940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.10
#BAB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB940
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB940#FFFFFF#000000##000000
##BAB9401.002.0810.1010.10
#FFFFFF2.081.0021.0021.00
#00000010.1021.001.001.00
##00000010.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B22F
Deuteranopia (green-blind)
#C9B648
Tritanopia (blue-blind)
#C7AEA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab940;
/* rgb */ color: rgb(186, 185, 64);
/* oklch */ color: oklch(76.4% 0.140 108.8);
Tailwind
colors: {
  custom: {
    50: '#d2cd7b',
    500: '#bab940',
    950: '#000000',
  },
}
SCSS
$custom: #bab940;
$custom-light: #d2cd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#bab940",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 59.508,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.76417,
    "c": 0.14044,
    "h": 108.8
  },
  "luminance": 0.45507
}

Semantic roles & 50–950 ramp

primary
#BAB940
secondary
#8E8FC8
accent
#51D84F
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB940

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

Preview Lab → · Contrast checker → · Palette generator →

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