#BAC02A#BAC02A

#BAC02A is a light, vivid yellow. Relative luminance 0.483; OKLCH L 77.8% C 0.161 H 112.0°. Best body text is #000000 at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#BAC02A
RGBrgb(186, 192, 42)
HSLhsl(62, 64%, 46%)
HSVhsv(62, 78%, 75%)
CMYKcmyk(3.1%, 0%, 78.1%, 24.7%)
CIE-LABlab(75.02, -19.13, 68.43)
CIE-LCHlch(75.02, 71.06, 105.62°)
OKLaboklab(77.81% -0.0602 0.149)
OKLCHoklch(77.81% 0.161 112)
XYZxyz(39.5186, 48.3065, 9.4324)
Luminance0.4831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC02A #302AC0
analogous
#C07B2A #BAC02A #6FC02A
triadic
#BAC02A #2ABAC0 #C02ABA
tetradic
#BAC02A #2AC07B #302AC0 #C02A6F
square
#BAC02A #2AC07B #302AC0 #C02A6F
split-complementary
#BAC02A #2A6FC0 #7B2AC0
monochromatic
#595C14 #898E1F #BAC02A #D3D84F #DFE381

Accessibility & contrast

On white

1.97
#BAC02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.66
#BAC02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC02A
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC02A#FFFFFF#000000##000000
##BAC02A1.001.9710.6610.66
#FFFFFF1.971.0021.0021.00
#00000010.6621.001.001.00
##00000010.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB700
Deuteranopia (green-blind)
#D0BA38
Tritanopia (blue-blind)
#C7B4A5
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #bac02a;
/* rgb */ color: rgb(186, 192, 42);
/* oklch */ color: oklch(77.8% 0.161 112.0);
Tailwind
colors: {
  custom: {
    50: '#d3d271',
    500: '#bac02a',
    950: '#000000',
  },
}
SCSS
$custom: #bac02a;
$custom-light: #d3d271;
$custom-dark: #000000;
JSON
{
  "hex": "#bac02a",
  "rgb": {
    "r": 186,
    "g": 192,
    "b": 42
  },
  "hsl": {
    "h": 62.4,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.77808,
    "c": 0.16071,
    "h": 112
  },
  "luminance": 0.48306
}

Semantic roles & 50–950 ramp

primary
#BAC02A
secondary
#7D7ACC
accent
#41E747
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151408
muted
#83827B

Preview Lab

Preview with #BAC02A

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

Preview Lab → · Contrast checker → · Palette generator →

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