#BAC945#BAC945

#BAC945 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.0% C 0.154 H 115.5°. Best body text is #000000 at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#BAC945
RGBrgb(186, 201, 69)
HSLhsl(67, 55%, 53%)
HSVhsv(67, 66%, 79%)
CMYKcmyk(7.5%, 0%, 65.7%, 21.2%)
CIE-LABlab(77.66, -22.25, 61.60)
CIE-LCHlch(77.66, 65.49, 109.86°)
OKLaboklab(79.98% -0.0664 0.1391)
OKLCHoklch(79.98% 0.154 115.5)
XYZxyz(42.2115, 52.6427, 13.5665)
Luminance0.5264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC945 #5445C9
analogous
#C99645 #BAC945 #78C945
triadic
#BAC945 #45BAC9 #C945BA
tetradic
#BAC945 #45C996 #5445C9 #C94578
square
#BAC945 #45C996 #5445C9 #C94578
split-complementary
#BAC945 #4578C9 #9645C9
monochromatic
#697221 #95A22F #BAC945 #CCD774 #DDE5A4

Accessibility & contrast

On white

1.82
#BAC945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.53
#BAC945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC945
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC945#FFFFFF#000000##000000
##BAC9451.001.8211.5311.53
#FFFFFF1.821.0021.0021.00
#00000011.5321.001.001.00
##00000011.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF33
Deuteranopia (green-blind)
#D6C14E
Tritanopia (blue-blind)
#C5BEAE
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #bac945;
/* rgb */ color: rgb(186, 201, 69);
/* oklch */ color: oklch(80.0% 0.154 115.5);
Tailwind
colors: {
  custom: {
    50: '#d2d980',
    500: '#bac945',
    950: '#000000',
  },
}
SCSS
$custom: #bac945;
$custom-light: #d2d980;
$custom-dark: #000000;
JSON
{
  "hex": "#bac945",
  "rgb": {
    "r": 186,
    "g": 201,
    "b": 69
  },
  "hsl": {
    "h": 66.818,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.79979,
    "c": 0.15416,
    "h": 115.5
  },
  "luminance": 0.52642
}

Semantic roles & 50–950 ramp

primary
#BAC945
secondary
#3F377B
accent
#49DE5A
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140B
muted
#83837E

Preview Lab

Preview with #BAC945

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

Preview Lab → · Contrast checker → · Palette generator →

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