#A1B31E#A1B31E

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

Color values

HEX#A1B31E
RGBrgb(161, 179, 30)
HSLhsl(67, 71%, 41%)
HSVhsv(67, 83%, 70%)
CMYKcmyk(10.1%, 0%, 83.2%, 29.8%)
CIE-LABlab(69.41, -23.76, 66.02)
CIE-LCHlch(69.41, 70.16, 109.79°)
OKLaboklab(72.82% -0.0725 0.1427)
OKLCHoklch(72.82% 0.16 116.9)
XYZxyz(31.0532, 39.9114, 7.2958)
Luminance0.3991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B31E #301EB3
analogous
#B37A1E #A1B31E #56B31E
triadic
#A1B31E #1EA1B3 #B31EA1
tetradic
#A1B31E #1EB37A #301EB3 #B31E56
square
#A1B31E #1EB37A #301EB3 #B31E56
split-complementary
#A1B31E #1E56B3 #7A1EB3
monochromatic
#434A0C #727F15 #A1B31E #C8DD32 #D6E566

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A1B31E#FFFFFF#000000##000000
##A1B31E1.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)
#BEAA2E
Tritanopia (blue-blind)
#ACA899
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a1b31e;
/* rgb */ color: rgb(161, 179, 30);
/* oklch */ color: oklch(72.8% 0.160 116.9);
Tailwind
colors: {
  custom: {
    50: '#c1c96a',
    500: '#a1b31e',
    950: '#000000',
  },
}
SCSS
$custom: #a1b31e;
$custom-light: #c1c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b31e",
  "rgb": {
    "r": 161,
    "g": 179,
    "b": 30
  },
  "hsl": {
    "h": 67.248,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72816,
    "c": 0.16011,
    "h": 116.9
  },
  "luminance": 0.39911
}

Semantic roles & 50–950 ramp

primary
#A1B31E
secondary
#6F62CB
accent
#3AEE50
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B31E

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

Preview Lab → · Contrast checker → · Palette generator →

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