#BAC231#BAC231

#BAC231 is a light, vivid yellow. Relative luminance 0.492; OKLCH L 78.3% C 0.159 H 112.8°. Best body text is #000000 at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#BAC231
RGBrgb(186, 194, 49)
HSLhsl(63, 60%, 48%)
HSVhsv(63, 75%, 76%)
CMYKcmyk(4.1%, 0%, 74.7%, 23.9%)
CIE-LABlab(75.60, -19.85, 66.81)
CIE-LCHlch(75.60, 69.70, 106.54°)
OKLaboklab(78.29% -0.0616 0.1468)
OKLCHoklch(78.29% 0.159 112.8)
XYZxyz(40.0972, 49.2454, 10.2982)
Luminance0.4924 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC231 #3931C2
analogous
#C28131 #BAC231 #72C231
triadic
#BAC231 #31BAC2 #C231BA
tetradic
#BAC231 #31C281 #3931C2 #C23172
square
#BAC231 #31C281 #3931C2 #C23172
split-complementary
#BAC231 #3172C2 #8131C2
monochromatic
#5C6018 #8B9125 #BAC231 #CFD65B #DDE28C

Accessibility & contrast

On white

1.94
#BAC231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.85
#BAC231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC231
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC231#FFFFFF#000000##000000
##BAC2311.001.9410.8510.85
#FFFFFF1.941.0021.0021.00
#00000010.8521.001.001.00
##00000010.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B90E
Deuteranopia (green-blind)
#D1BC3D
Tritanopia (blue-blind)
#C7B6A7
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #bac231;
/* rgb */ color: rgb(186, 194, 49);
/* oklch */ color: oklch(78.3% 0.159 112.8);
Tailwind
colors: {
  custom: {
    50: '#d2d474',
    500: '#bac231',
    950: '#000000',
  },
}
SCSS
$custom: #bac231;
$custom-light: #d2d474;
$custom-dark: #000000;
JSON
{
  "hex": "#bac231",
  "rgb": {
    "r": 186,
    "g": 194,
    "b": 49
  },
  "hsl": {
    "h": 63.31,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.78288,
    "c": 0.15922,
    "h": 112.8
  },
  "luminance": 0.49244
}

Semantic roles & 50–950 ramp

primary
#BAC231
secondary
#8783CC
accent
#45E34E
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151409
muted
#83827B

Preview Lab

Preview with #BAC231

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

Preview Lab → · Contrast checker → · Palette generator →

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