#BAC738#BAC738

#BAC738 is a light, vivid yellow. Relative luminance 0.516; OKLCH L 79.4% C 0.161 H 114.6°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#BAC738
RGBrgb(186, 199, 56)
HSLhsl(65, 56%, 50%)
HSVhsv(65, 72%, 78%)
CMYKcmyk(6.5%, 0%, 71.9%, 22%)
CIE-LABlab(77.02, -21.99, 65.81)
CIE-LCHlch(77.02, 69.38, 108.48°)
OKLaboklab(79.44% -0.0669 0.1459)
OKLCHoklch(79.44% 0.161 114.6)
XYZxyz(41.3881, 51.5722, 11.5148)
Luminance0.5157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC738 #4538C7
analogous
#C78D38 #BAC738 #72C738
triadic
#BAC738 #38BAC7 #C738BA
tetradic
#BAC738 #38C78D #4538C7 #C73872
square
#BAC738 #38C78D #4538C7 #C73872
split-complementary
#BAC738 #3872C7 #8D38C7
monochromatic
#61671D #8D972B #BAC738 #CBD468 #DBE298

Accessibility & contrast

On white

1.86
#BAC738 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#BAC738 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC738
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC738#FFFFFF#000000##000000
##BAC7381.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD1D
Deuteranopia (green-blind)
#D5BF44
Tritanopia (blue-blind)
#C6BBAB
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #bac738;
/* rgb */ color: rgb(186, 199, 56);
/* oklch */ color: oklch(79.4% 0.161 114.6);
Tailwind
colors: {
  custom: {
    50: '#d2d778',
    500: '#bac738',
    950: '#000000',
  },
}
SCSS
$custom: #bac738;
$custom-light: #d2d778;
$custom-dark: #000000;
JSON
{
  "hex": "#bac738",
  "rgb": {
    "r": 186,
    "g": 199,
    "b": 56
  },
  "hsl": {
    "h": 65.455,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.79439,
    "c": 0.16052,
    "h": 114.6
  },
  "luminance": 0.51571
}

Semantic roles & 50–950 ramp

primary
#BAC738
secondary
#373272
accent
#48DF56
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#15140A
muted
#84837D

Preview Lab

Preview with #BAC738

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

Preview Lab → · Contrast checker → · Palette generator →

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