#BAC338#BAC338

#BAC338 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 78.6% C 0.156 H 113.2°. Best body text is #000000 at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#BAC338
RGBrgb(186, 195, 56)
HSLhsl(64, 55%, 49%)
HSVhsv(64, 71%, 76%)
CMYKcmyk(4.6%, 0%, 71.3%, 23.5%)
CIE-LABlab(75.92, -20.02, 64.74)
CIE-LCHlch(75.92, 67.76, 107.18°)
OKLaboklab(78.55% -0.0614 0.1437)
OKLCHoklch(78.55% 0.156 113.2)
XYZxyz(40.4798, 49.7557, 11.2120)
Luminance0.4975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC338 #4138C3
analogous
#C38738 #BAC338 #75C338
triadic
#BAC338 #38BAC3 #C338BA
tetradic
#BAC338 #38C387 #4138C3 #C33875
square
#BAC338 #38C387 #4138C3 #C33875
split-complementary
#BAC338 #3875C3 #8738C3
monochromatic
#5F641D #8D932A #BAC338 #CCD365 #DCE195

Accessibility & contrast

On white

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

On black

10.95
#BAC338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC338
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC338#FFFFFF#000000##000000
##BAC3381.001.9210.9510.95
#FFFFFF1.921.0021.0021.00
#00000010.9521.001.001.00
##00000010.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA1F
Deuteranopia (green-blind)
#D1BD43
Tritanopia (blue-blind)
#C6B7A8
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #bac338;
/* rgb */ color: rgb(186, 195, 56);
/* oklch */ color: oklch(78.6% 0.156 113.2);
Tailwind
colors: {
  custom: {
    50: '#d2d578',
    500: '#bac338',
    950: '#000000',
  },
}
SCSS
$custom: #bac338;
$custom-light: #d2d578;
$custom-dark: #000000;
JSON
{
  "hex": "#bac338",
  "rgb": {
    "r": 186,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 63.885,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.78553,
    "c": 0.15624,
    "h": 113.2
  },
  "luminance": 0.49755
}

Semantic roles & 50–950 ramp

primary
#BAC338
secondary
#8F8BCC
accent
#49DF53
background
#FDFDF7
surface
#FAFAEE
border
#D3D3C9
text
#151409
muted
#83837B

Preview Lab

Preview with #BAC338

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

Preview Lab → · Contrast checker → · Palette generator →

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