#BAC240#BAC240

#BAC240 is a light, vivid yellow. Relative luminance 0.494; OKLCH L 78.4% C 0.150 H 112.8°. Best body text is #000000 at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#BAC240
RGBrgb(186, 194, 64)
HSLhsl(64, 52%, 51%)
HSVhsv(64, 67%, 76%)
CMYKcmyk(4.1%, 0%, 67%, 23.9%)
CIE-LABlab(75.70, -19.09, 61.54)
CIE-LCHlch(75.70, 64.43, 107.23°)
OKLaboklab(78.39% -0.0581 0.1382)
OKLCHoklch(78.39% 0.15 112.8)
XYZxyz(40.4681, 49.3937, 12.2517)
Luminance0.4939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC240 #4840C2
analogous
#C28940 #BAC240 #79C240
triadic
#BAC240 #40BAC2 #C240BA
tetradic
#BAC240 #40C289 #4840C2 #C24079
square
#BAC240 #40C289 #4840C2 #C24079
split-complementary
#BAC240 #4079C2 #8940C2
monochromatic
#626721 #8F9530 #BAC240 #CBD16E #DCE09D

Accessibility & contrast

On white

1.93
#BAC240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.88
#BAC240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC240
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC240#FFFFFF#000000##000000
##BAC2401.001.9310.8810.88
#FFFFFF1.931.0021.0021.00
#00000010.8821.001.001.00
##00000010.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#D0BC49
Tritanopia (blue-blind)
#C6B7A8
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #bac240;
/* rgb */ color: rgb(186, 194, 64);
/* oklch */ color: oklch(78.4% 0.150 112.8);
Tailwind
colors: {
  custom: {
    50: '#d2d47c',
    500: '#bac240',
    950: '#000000',
  },
}
SCSS
$custom: #bac240;
$custom-light: #d2d47c;
$custom-dark: #000000;
JSON
{
  "hex": "#bac240",
  "rgb": {
    "r": 186,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 63.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.78391,
    "c": 0.14994,
    "h": 112.8
  },
  "luminance": 0.49393
}

Semantic roles & 50–950 ramp

primary
#BAC240
secondary
#9692CC
accent
#4DDB56
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #BAC240

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

Preview Lab → · Contrast checker → · Palette generator →

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