#BAC238#BAC238

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

Color values

HEX#BAC238
RGBrgb(186, 194, 56)
HSLhsl(63, 55%, 49%)
HSVhsv(63, 71%, 76%)
CMYKcmyk(4.1%, 0%, 71.1%, 23.9%)
CIE-LABlab(75.64, -19.52, 64.47)
CIE-LCHlch(75.64, 67.36, 106.85°)
OKLaboklab(78.33% -0.0601 0.1431)
OKLCHoklch(78.33% 0.155 112.8)
XYZxyz(40.2565, 49.3091, 11.1376)
Luminance0.4931 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC238 #4038C2
analogous
#C28538 #BAC238 #75C238
triadic
#BAC238 #38BAC2 #C238BA
tetradic
#BAC238 #38C285 #4038C2 #C23875
square
#BAC238 #38C285 #4038C2 #C23875
split-complementary
#BAC238 #3875C2 #8538C2
monochromatic
#5F631D #8C932A #BAC238 #CCD265 #DCE094

Accessibility & contrast

On white

1.93
#BAC238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.86
#BAC238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC238
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC238#FFFFFF#000000##000000
##BAC2381.001.9310.8610.86
#FFFFFF1.931.0021.0021.00
#00000010.8621.001.001.00
##00000010.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bac238;
/* rgb */ color: rgb(186, 194, 56);
/* oklch */ color: oklch(78.3% 0.155 112.8);
Tailwind
colors: {
  custom: {
    50: '#d2d478',
    500: '#bac238',
    950: '#000000',
  },
}
SCSS
$custom: #bac238;
$custom-light: #d2d478;
$custom-dark: #000000;
JSON
{
  "hex": "#bac238",
  "rgb": {
    "r": 186,
    "g": 194,
    "b": 56
  },
  "hsl": {
    "h": 63.478,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.78333,
    "c": 0.15517,
    "h": 112.8
  },
  "luminance": 0.49308
}

Semantic roles & 50–950 ramp

primary
#BAC238
secondary
#8E8ACB
accent
#49DF52
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#151409
muted
#83827B

Preview Lab

Preview with #BAC238

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

Preview Lab → · Contrast checker → · Palette generator →

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