#BAB240#BAB240

#BAB240 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.9% C 0.133 H 105.3°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#BAB240
RGBrgb(186, 178, 64)
HSLhsl(56, 49%, 49%)
HSVhsv(56, 66%, 73%)
CMYKcmyk(0%, 4.3%, 65.6%, 27.1%)
CIE-LABlab(71.32, -10.97, 57.04)
CIE-LCHlch(71.32, 58.09, 100.88°)
OKLaboklab(74.9% -0.0352 0.1287)
OKLCHoklch(74.9% 0.133 105.3)
XYZxyz(37.0969, 42.6514, 11.1279)
Luminance0.4265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB240 #4048BA
analogous
#BA7540 #BAB240 #85BA40
triadic
#BAB240 #40BAB2 #B240BA
tetradic
#BAB240 #40BA75 #4048BA #BA4085
square
#BAB240 #40BA75 #4048BA #BA4085
split-complementary
#BAB240 #4085BA #7540BA
monochromatic
#5F5B21 #8C8630 #BAB240 #CCC66B #DCD799

Accessibility & contrast

On white

2.20
#BAB240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.53
#BAB240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB240
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB240#FFFFFF#000000##000000
##BAB2401.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC31
Deuteranopia (green-blind)
#C4B147
Tritanopia (blue-blind)
#C7A69B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab240;
/* rgb */ color: rgb(186, 178, 64);
/* oklch */ color: oklch(74.9% 0.133 105.3);
Tailwind
colors: {
  custom: {
    50: '#d2c87b',
    500: '#bab240',
    950: '#000000',
  },
}
SCSS
$custom: #bab240;
$custom-light: #d2c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#bab240",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 56.066,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.74897,
    "c": 0.13347,
    "h": 105.3
  },
  "luminance": 0.4265
}

Semantic roles & 50–950 ramp

primary
#BAB240
secondary
#8E92C8
accent
#58D84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB240

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

Preview Lab → · Contrast checker → · Palette generator →

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