#BAC331#BAC331

#BAC331 is a light, vivid yellow. Relative luminance 0.497; OKLCH L 78.5% C 0.160 H 113.1°. Best body text is #000000 at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#BAC331
RGBrgb(186, 195, 49)
HSLhsl(64, 60%, 48%)
HSVhsv(64, 75%, 76%)
CMYKcmyk(4.6%, 0%, 74.9%, 23.5%)
CIE-LABlab(75.88, -20.34, 67.07)
CIE-LCHlch(75.88, 70.09, 106.87°)
OKLaboklab(78.51% -0.063 0.1474)
OKLCHoklch(78.51% 0.16 113.1)
XYZxyz(40.3205, 49.6920, 10.3726)
Luminance0.4969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC331 #3A31C3
analogous
#C38331 #BAC331 #71C331
triadic
#BAC331 #31BAC3 #C331BA
tetradic
#BAC331 #31C383 #3A31C3 #C33171
square
#BAC331 #31C383 #3A31C3 #C33171
split-complementary
#BAC331 #3171C3 #8331C3
monochromatic
#5D6118 #8B9225 #BAC331 #CED65B #DDE28C

Accessibility & contrast

On white

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

On black

10.94
#BAC331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC331
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC331#FFFFFF#000000##000000
##BAC3311.001.9210.9410.94
#FFFFFF1.921.0021.0021.00
#00000010.9421.001.001.00
##00000010.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA0D
Deuteranopia (green-blind)
#D2BD3D
Tritanopia (blue-blind)
#C7B7A7
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #bac331;
/* rgb */ color: rgb(186, 195, 49);
/* oklch */ color: oklch(78.5% 0.160 113.1);
Tailwind
colors: {
  custom: {
    50: '#d2d575',
    500: '#bac331',
    950: '#000000',
  },
}
SCSS
$custom: #bac331;
$custom-light: #d2d575;
$custom-dark: #000000;
JSON
{
  "hex": "#bac331",
  "rgb": {
    "r": 186,
    "g": 195,
    "b": 49
  },
  "hsl": {
    "h": 63.699,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.7851,
    "c": 0.16025,
    "h": 113.1
  },
  "luminance": 0.49691
}

Semantic roles & 50–950 ramp

primary
#BAC331
secondary
#8883CC
accent
#45E34F
background
#FDFDF7
surface
#FAFAED
border
#D3D3C8
text
#151409
muted
#83837B

Preview Lab

Preview with #BAC331

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

Preview Lab → · Contrast checker → · Palette generator →

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