#BAC340#BAC340

#BAC340 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 78.6% C 0.151 H 113.2°. Best body text is #000000 at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#BAC340
RGBrgb(186, 195, 64)
HSLhsl(64, 52%, 51%)
HSVhsv(64, 67%, 76%)
CMYKcmyk(4.6%, 0%, 67.2%, 23.5%)
CIE-LABlab(75.97, -19.59, 61.82)
CIE-LCHlch(75.97, 64.85, 107.58°)
OKLaboklab(78.61% -0.0595 0.1388)
OKLCHoklch(78.61% 0.151 113.2)
XYZxyz(40.6914, 49.8403, 12.3261)
Luminance0.4984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC340 #4940C3
analogous
#C38A40 #BAC340 #78C340
triadic
#BAC340 #40BAC3 #C340BA
tetradic
#BAC340 #40C38A #4940C3 #C34078
square
#BAC340 #40C38A #4940C3 #C34078
split-complementary
#BAC340 #4078C3 #8A40C3
monochromatic
#636821 #8F972F #BAC340 #CBD26F #DCE09D

Accessibility & contrast

On white

1.91
#BAC340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.97
#BAC340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC340
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC340#FFFFFF#000000##000000
##BAC3401.001.9110.9710.97
#FFFFFF1.911.0021.0021.00
#00000010.9721.001.001.00
##00000010.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA2D
Deuteranopia (green-blind)
#D1BD49
Tritanopia (blue-blind)
#C6B8A9
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #bac340;
/* rgb */ color: rgb(186, 195, 64);
/* oklch */ color: oklch(78.6% 0.151 113.2);
Tailwind
colors: {
  custom: {
    50: '#d2d57c',
    500: '#bac340',
    950: '#000000',
  },
}
SCSS
$custom: #bac340;
$custom-light: #d2d57c;
$custom-dark: #000000;
JSON
{
  "hex": "#bac340",
  "rgb": {
    "r": 186,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 64.122,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.78612,
    "c": 0.15103,
    "h": 113.2
  },
  "luminance": 0.49839
}

Semantic roles & 50–950 ramp

primary
#BAC340
secondary
#9692CC
accent
#4CDC56
background
#FDFDF7
surface
#FAFAEE
border
#D3D3C9
text
#14140A
muted
#83837C

Preview Lab

Preview with #BAC340

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

Preview Lab → · Contrast checker → · Palette generator →

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