#A1B31C#A1B31C

#A1B31C 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#A1B31C
RGBrgb(161, 179, 28)
HSLhsl(67, 73%, 41%)
HSVhsv(67, 84%, 70%)
CMYKcmyk(10.1%, 0%, 84.4%, 29.8%)
CIE-LABlab(69.40, -23.82, 66.49)
CIE-LCHlch(69.40, 70.63, 109.71°)
OKLaboklab(72.81% -0.0728 0.1434)
OKLCHoklch(72.81% 0.161 116.9)
XYZxyz(31.0285, 39.9015, 7.1656)
Luminance0.3990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B31C #2E1CB3
analogous
#B3791C #A1B31C #56B31C
triadic
#A1B31C #1CA1B3 #B31CA1
tetradic
#A1B31C #1CB379 #2E1CB3 #B31C56
square
#A1B31C #1CB379 #2E1CB3 #B31C56
split-complementary
#A1B31C #1C56B3 #791CB3
monochromatic
#42490B #717E14 #A1B31C #C9DE2E #D7E763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A1B31C#FFFFFF#000000##000000
##A1B31C1.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: #a1b31c;
/* rgb */ color: rgb(161, 179, 28);
/* oklch */ color: oklch(72.8% 0.161 116.9);
Tailwind
colors: {
  custom: {
    50: '#c1c969',
    500: '#a1b31c',
    950: '#000000',
  },
}
SCSS
$custom: #a1b31c;
$custom-light: #c1c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b31c",
  "rgb": {
    "r": 161,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 67.152,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.72808,
    "c": 0.16087,
    "h": 116.9
  },
  "luminance": 0.39901
}

Semantic roles & 50–950 ramp

primary
#A1B31C
secondary
#6C5FCB
accent
#38F04E
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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