#BAC02B#BAC02B

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

Color values

HEX#BAC02B
RGBrgb(186, 192, 43)
HSLhsl(62, 63%, 46%)
HSVhsv(62, 78%, 75%)
CMYKcmyk(3.1%, 0%, 77.6%, 24.7%)
CIE-LABlab(75.02, -19.10, 68.14)
CIE-LCHlch(75.02, 70.77, 105.65°)
OKLaboklab(77.81% -0.06 0.1486)
OKLCHoklch(77.81% 0.16 112)
XYZxyz(39.5367, 48.3138, 9.5278)
Luminance0.4831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC02B #312BC0
analogous
#C07B2B #BAC02B #6FC02B
triadic
#BAC02B #2BBAC0 #C02BBA
tetradic
#BAC02B #2BC07B #312BC0 #C02B6F
square
#BAC02B #2BC07B #312BC0 #C02B6F
split-complementary
#BAC02B #2B6FC0 #7B2BC0
monochromatic
#595C15 #8A8E20 #BAC02B #D2D850 #DFE382

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAC02B#FFFFFF#000000##000000
##BAC02B1.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)
#D0BA39
Tritanopia (blue-blind)
#C7B4A5
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #bac02b;
/* rgb */ color: rgb(186, 192, 43);
/* oklch */ color: oklch(77.8% 0.160 112.0);
Tailwind
colors: {
  custom: {
    50: '#d3d272',
    500: '#bac02b',
    950: '#000000',
  },
}
SCSS
$custom: #bac02b;
$custom-light: #d3d272;
$custom-dark: #000000;
JSON
{
  "hex": "#bac02b",
  "rgb": {
    "r": 186,
    "g": 192,
    "b": 43
  },
  "hsl": {
    "h": 62.416,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.77813,
    "c": 0.16024,
    "h": 112
  },
  "luminance": 0.48313
}

Semantic roles & 50–950 ramp

primary
#BAC02B
secondary
#7E7BCC
accent
#41E648
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151409
muted
#83827B

Preview Lab

Preview with #BAC02B

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

Preview Lab → · Contrast checker → · Palette generator →

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