#A1B31A#A1B31A

#A1B31A is a light, vivid yellow. Relative luminance 0.399; OKLCH L 72.8% C 0.162 H 116.9°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#A1B31A
RGBrgb(161, 179, 26)
HSLhsl(67, 75%, 40%)
HSVhsv(67, 85%, 70%)
CMYKcmyk(10.1%, 0%, 85.5%, 29.8%)
CIE-LABlab(69.39, -23.88, 66.94)
CIE-LCHlch(69.39, 71.07, 109.63°)
OKLaboklab(72.8% -0.0731 0.1441)
OKLCHoklch(72.8% 0.162 116.9)
XYZxyz(31.0054, 39.8923, 7.0437)
Luminance0.3989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B31A #2C1AB3
analogous
#B3791A #A1B31A #54B31A
triadic
#A1B31A #1AA1B3 #B31AA1
tetradic
#A1B31A #1AB379 #2C1AB3 #B31A54
square
#A1B31A #1AB379 #2C1AB3 #B31A54
split-complementary
#A1B31A #1A54B3 #791AB3
monochromatic
#41480A #717E12 #A1B31A #CBE02A #D8E860

Accessibility & contrast

On white

2.34
#A1B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#A1B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B31A
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B31A#FFFFFF#000000##000000
##A1B31A1.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BEAA2C
Tritanopia (blue-blind)
#ACA899
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a1b31a;
/* rgb */ color: rgb(161, 179, 26);
/* oklch */ color: oklch(72.8% 0.162 116.9);
Tailwind
colors: {
  custom: {
    50: '#c1c969',
    500: '#a1b31a',
    950: '#000000',
  },
}
SCSS
$custom: #a1b31a;
$custom-light: #c1c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b31a",
  "rgb": {
    "r": 161,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 67.059,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.728,
    "c": 0.16158,
    "h": 116.9
  },
  "luminance": 0.39892
}

Semantic roles & 50–950 ramp

primary
#A1B31A
secondary
#6A5DCC
accent
#37F14D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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