#BAC742#BAC742

#BAC742 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.5% C 0.154 H 114.7°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#BAC742
RGBrgb(186, 199, 66)
HSLhsl(66, 54%, 52%)
HSVhsv(66, 67%, 78%)
CMYKcmyk(6.5%, 0%, 66.8%, 22%)
CIE-LABlab(77.09, -21.45, 62.18)
CIE-LCHlch(77.09, 65.78, 109.03°)
OKLaboklab(79.51% -0.0645 0.1399)
OKLCHoklch(79.51% 0.154 114.7)
XYZxyz(41.6576, 51.6800, 12.9340)
Luminance0.5168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC742 #4F42C7
analogous
#C79242 #BAC742 #77C742
triadic
#BAC742 #42BAC7 #C742BA
tetradic
#BAC742 #42C792 #4F42C7 #C74277
square
#BAC742 #42C792 #4F42C7 #C74277
split-complementary
#BAC742 #4277C7 #9242C7
monochromatic
#666E21 #929D2F #BAC742 #CBD571 #DCE3A0

Accessibility & contrast

On white

1.85
#BAC742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.34
#BAC742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC742
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC742#FFFFFF#000000##000000
##BAC7421.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2F
Deuteranopia (green-blind)
#D4C04C
Tritanopia (blue-blind)
#C6BCAC
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #bac742;
/* rgb */ color: rgb(186, 199, 66);
/* oklch */ color: oklch(79.5% 0.154 114.7);
Tailwind
colors: {
  custom: {
    50: '#d2d77e',
    500: '#bac742',
    950: '#000000',
  },
}
SCSS
$custom: #bac742;
$custom-light: #d2d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#bac742",
  "rgb": {
    "r": 186,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 65.865,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79512,
    "c": 0.15404,
    "h": 114.7
  },
  "luminance": 0.51679
}

Semantic roles & 50–950 ramp

primary
#BAC742
secondary
#3C3678
accent
#4ADE59
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #BAC742

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

Preview Lab → · Contrast checker → · Palette generator →

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