#BAC252#BAC252

#BAC252 is a light, vivid yellow. Relative luminance 0.496; OKLCH L 78.6% C 0.136 H 112.9°. Best body text is #000000 at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#BAC252
RGBrgb(186, 194, 82)
HSLhsl(64, 48%, 54%)
HSVhsv(64, 58%, 76%)
CMYKcmyk(4.1%, 0%, 57.7%, 23.9%)
CIE-LABlab(75.84, -17.88, 54.15)
CIE-LCHlch(75.84, 57.03, 108.28°)
OKLaboklab(78.56% -0.0528 0.1251)
OKLCHoklch(78.56% 0.136 112.9)
XYZxyz(41.0654, 49.6327, 15.3978)
Luminance0.4963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC252 #5A52C2
analogous
#C29252 #BAC252 #82C252
triadic
#BAC252 #52BAC2 #C252BA
tetradic
#BAC252 #52C292 #5A52C2 #C25282
square
#BAC252 #52C292 #5A52C2 #C25282
split-complementary
#BAC252 #5282C2 #9252C2
monochromatic
#6C7228 #979F38 #BAC252 #CCD27F #DEE2AC

Accessibility & contrast

On white

1.92
#BAC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.93
#BAC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC252
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC252#FFFFFF#000000##000000
##BAC2521.001.9210.9310.93
#FFFFFF1.921.0021.0021.00
#00000010.9321.001.001.00
##00000010.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBA46
Deuteranopia (green-blind)
#CFBC59
Tritanopia (blue-blind)
#C5B7AA
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #bac252;
/* rgb */ color: rgb(186, 194, 82);
/* oklch */ color: oklch(78.6% 0.136 112.9);
Tailwind
colors: {
  custom: {
    50: '#d1d487',
    500: '#bac252',
    950: '#000000',
  },
}
SCSS
$custom: #bac252;
$custom-light: #d1d487;
$custom-dark: #000000;
JSON
{
  "hex": "#bac252",
  "rgb": {
    "r": 186,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 64.286,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.78557,
    "c": 0.13583,
    "h": 112.9
  },
  "luminance": 0.49632
}

Semantic roles & 50–950 ramp

primary
#BAC252
secondary
#A3A0D0
accent
#50D75A
background
#FDFCF8
surface
#FAF9F0
border
#D3D2CB
text
#14140B
muted
#83827C

Preview Lab

Preview with #BAC252

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

Preview Lab → · Contrast checker → · Palette generator →

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