#A1B31F#A1B31F

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

Color values

HEX#A1B31F
RGBrgb(161, 179, 31)
HSLhsl(67, 70%, 41%)
HSVhsv(67, 83%, 70%)
CMYKcmyk(10.1%, 0%, 82.7%, 29.8%)
CIE-LABlab(69.41, -23.73, 65.77)
CIE-LCHlch(69.41, 69.92, 109.84°)
OKLaboklab(72.82% -0.0724 0.1424)
OKLCHoklch(72.82% 0.16 117)
XYZxyz(31.0662, 39.9166, 7.3642)
Luminance0.3992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B31F #311FB3
analogous
#B37B1F #A1B31F #57B31F
triadic
#A1B31F #1FA1B3 #B31FA1
tetradic
#A1B31F #1FB37B #311FB3 #B31F57
square
#A1B31F #1FB37B #311FB3 #B31F57
split-complementary
#A1B31F #1F57B3 #7B1FB3
monochromatic
#434B0D #727F16 #A1B31F #C7DC33 #D6E568

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #a1b31f;
/* rgb */ color: rgb(161, 179, 31);
/* oklch */ color: oklch(72.8% 0.160 117.0);
Tailwind
colors: {
  custom: {
    50: '#c1c96a',
    500: '#a1b31f',
    950: '#000000',
  },
}
SCSS
$custom: #a1b31f;
$custom-light: #c1c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b31f",
  "rgb": {
    "r": 161,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 67.297,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.7282,
    "c": 0.15973,
    "h": 117
  },
  "luminance": 0.39916
}

Semantic roles & 50–950 ramp

primary
#A1B31F
secondary
#7064CA
accent
#3BED50
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B31F

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

Preview Lab → · Contrast checker → · Palette generator →

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