#BAC02F#BAC02F

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

Color values

HEX#BAC02F
RGBrgb(186, 192, 47)
HSLhsl(62, 61%, 47%)
HSVhsv(62, 76%, 75%)
CMYKcmyk(3.1%, 0%, 75.5%, 24.7%)
CIE-LABlab(75.04, -18.94, 66.93)
CIE-LCHlch(75.04, 69.56, 105.80°)
OKLaboklab(77.83% -0.0592 0.1467)
OKLCHoklch(77.83% 0.158 112)
XYZxyz(39.6138, 48.3446, 9.9335)
Luminance0.4834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC02F #352FC0
analogous
#C07E2F #BAC02F #72C02F
triadic
#BAC02F #2FBAC0 #C02FBA
tetradic
#BAC02F #2FC07E #352FC0 #C02F72
square
#BAC02F #2FC07E #352FC0 #C02F72
split-complementary
#BAC02F #2F72C0 #7E2FC0
monochromatic
#5B5E17 #8A8F23 #BAC02F #D0D656 #DEE288

Accessibility & contrast

On white

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

On black

10.67
#BAC02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC02F
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC02F#FFFFFF#000000##000000
##BAC02F1.001.9710.6710.67
#FFFFFF1.971.0021.0021.00
#00000010.6721.001.001.00
##00000010.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bac02f;
/* rgb */ color: rgb(186, 192, 47);
/* oklch */ color: oklch(77.8% 0.158 112.0);
Tailwind
colors: {
  custom: {
    50: '#d2d273',
    500: '#bac02f',
    950: '#000000',
  },
}
SCSS
$custom: #bac02f;
$custom-light: #d2d273;
$custom-dark: #000000;
JSON
{
  "hex": "#bac02f",
  "rgb": {
    "r": 186,
    "g": 192,
    "b": 47
  },
  "hsl": {
    "h": 62.483,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.77835,
    "c": 0.15823,
    "h": 112
  },
  "luminance": 0.48344
}

Semantic roles & 50–950 ramp

primary
#BAC02F
secondary
#827FCB
accent
#44E44B
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151409
muted
#83827B

Preview Lab

Preview with #BAC02F

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

Preview Lab → · Contrast checker → · Palette generator →

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