#A1B31B#A1B31B

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

Color values

HEX#A1B31B
RGBrgb(161, 179, 27)
HSLhsl(67, 74%, 40%)
HSVhsv(67, 85%, 70%)
CMYKcmyk(10.1%, 0%, 84.9%, 29.8%)
CIE-LABlab(69.40, -23.85, 66.72)
CIE-LCHlch(69.40, 70.86, 109.67°)
OKLaboklab(72.8% -0.073 0.1438)
OKLCHoklch(72.8% 0.161 116.9)
XYZxyz(31.0167, 39.8968, 7.1036)
Luminance0.3990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B31B #2D1BB3
analogous
#B3791B #A1B31B #55B31B
triadic
#A1B31B #1BA1B3 #B31BA1
tetradic
#A1B31B #1BB379 #2D1BB3 #B31B55
square
#A1B31B #1BB379 #2D1BB3 #B31B55
split-complementary
#A1B31B #1B55B3 #791BB3
monochromatic
#41490B #717E13 #A1B31B #CADF2C #D7E761

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #a1b31b;
/* rgb */ color: rgb(161, 179, 27);
/* oklch */ color: oklch(72.8% 0.161 116.9);
Tailwind
colors: {
  custom: {
    50: '#c1c969',
    500: '#a1b31b',
    950: '#000000',
  },
}
SCSS
$custom: #a1b31b;
$custom-light: #c1c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b31b",
  "rgb": {
    "r": 161,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 67.105,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.72804,
    "c": 0.16123,
    "h": 116.9
  },
  "luminance": 0.39896
}

Semantic roles & 50–950 ramp

primary
#A1B31B
secondary
#6B5ECC
accent
#37F04D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B31B

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

Preview Lab → · Contrast checker → · Palette generator →

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