#A1BA31#A1BA31

#A1BA31 is a light, vivid yellow-green. Relative luminance 0.429; OKLCH L 74.5% C 0.159 H 119.6°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#A1BA31
RGBrgb(161, 186, 49)
HSLhsl(71, 58%, 46%)
HSVhsv(71, 74%, 73%)
CMYKcmyk(13.4%, 0%, 73.7%, 27.1%)
CIE-LABlab(71.50, -26.40, 62.28)
CIE-LCHlch(71.50, 67.64, 112.97°)
OKLaboklab(74.53% -0.0784 0.138)
OKLCHoklch(74.53% 0.159 119.6)
XYZxyz(32.8119, 42.9168, 9.4603)
Luminance0.4292 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1BA31 #4A31BA
analogous
#BA8E31 #A1BA31 #5CBA31
triadic
#A1BA31 #31A1BA #BA31A1
tetradic
#A1BA31 #31BA8E #4A31BA #BA315C
square
#A1BA31 #31BA8E #4A31BA #BA315C
split-complementary
#A1BA31 #315CBA #8E31BA
monochromatic
#4D5917 #778A24 #A1BA31 #BCD256 #CFDF86

Accessibility & contrast

On white

2.19
#A1BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#A1BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1BA31
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1BA31#FFFFFF#000000##000000
##A1BA311.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C3B03D
Tritanopia (blue-blind)
#AAB0A0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #a1ba31;
/* rgb */ color: rgb(161, 186, 49);
/* oklch */ color: oklch(74.5% 0.159 119.6);
Tailwind
colors: {
  custom: {
    50: '#c0ce73',
    500: '#a1ba31',
    950: '#000000',
  },
}
SCSS
$custom: #a1ba31;
$custom-light: #c0ce73;
$custom-dark: #000000;
JSON
{
  "hex": "#a1ba31",
  "rgb": {
    "r": 161,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 70.949,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74528,
    "c": 0.15872,
    "h": 119.6
  },
  "luminance": 0.42917
}

Semantic roles & 50–950 ramp

primary
#A1BA31
secondary
#8C7EC9
accent
#46E263
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A1BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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