#BAC042#BAC042

#BAC042 is a light, vivid yellow. Relative luminance 0.485; OKLCH L 78.0% C 0.146 H 112.0°. Best body text is #000000 at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#BAC042
RGBrgb(186, 192, 66)
HSLhsl(63, 50%, 51%)
HSVhsv(63, 66%, 75%)
CMYKcmyk(3.1%, 0%, 65.6%, 24.7%)
CIE-LABlab(75.16, -17.97, 60.20)
CIE-LCHlch(75.16, 62.83, 106.62°)
OKLaboklab(77.97% -0.0548 0.1357)
OKLCHoklch(77.97% 0.146 112)
XYZxyz(40.0839, 48.5326, 12.4094)
Luminance0.4853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC042 #4842C0
analogous
#C08742 #BAC042 #7BC042
triadic
#BAC042 #42BAC0 #C042BA
tetradic
#BAC042 #42C087 #4842C0 #C0427B
square
#BAC042 #42C087 #4842C0 #C0427B
split-complementary
#BAC042 #427BC0 #8742C0
monochromatic
#626622 #8F9431 #BAC042 #CBCF70 #DCDF9E

Accessibility & contrast

On white

1.96
#BAC042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.71
#BAC042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC042
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC042#FFFFFF#000000##000000
##BAC0421.001.9610.7110.71
#FFFFFF1.961.0021.0021.00
#00000010.7121.001.001.00
##00000010.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB730
Deuteranopia (green-blind)
#CFBB4B
Tritanopia (blue-blind)
#C6B5A6
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #bac042;
/* rgb */ color: rgb(186, 192, 66);
/* oklch */ color: oklch(78.0% 0.146 112.0);
Tailwind
colors: {
  custom: {
    50: '#d2d27d',
    500: '#bac042',
    950: '#000000',
  },
}
SCSS
$custom: #bac042;
$custom-light: #d2d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#bac042",
  "rgb": {
    "r": 186,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 62.857,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77967,
    "c": 0.14636,
    "h": 112
  },
  "luminance": 0.48532
}

Semantic roles & 50–950 ramp

primary
#BAC042
secondary
#9693CB
accent
#4EDA55
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #BAC042

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

Preview Lab → · Contrast checker → · Palette generator →

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