#A1B317#A1B317

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

Color values

HEX#A1B317
RGBrgb(161, 179, 23)
HSLhsl(67, 77%, 40%)
HSVhsv(67, 87%, 70%)
CMYKcmyk(10.1%, 0%, 87.2%, 29.8%)
CIE-LABlab(69.38, -23.96, 67.57)
CIE-LCHlch(69.38, 71.69, 109.52°)
OKLaboklab(72.79% -0.0735 0.145)
OKLCHoklch(72.79% 0.163 116.9)
XYZxyz(30.9736, 39.8796, 6.8763)
Luminance0.3988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B317 #2917B3
analogous
#B37717 #A1B317 #53B317
triadic
#A1B317 #17A1B3 #B317A1
tetradic
#A1B317 #17B377 #2917B3 #B31753
square
#A1B317 #17B377 #2917B3 #B31753
split-complementary
#A1B317 #1753B3 #7717B3
monochromatic
#3F4709 #707D10 #A1B317 #CDE324 #D9EA5B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A1B317#FFFFFF#000000##000000
##A1B3171.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)
#BEAA2A
Tritanopia (blue-blind)
#ACA898
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a1b317;
/* rgb */ color: rgb(161, 179, 23);
/* oklch */ color: oklch(72.8% 0.163 116.9);
Tailwind
colors: {
  custom: {
    50: '#c1c968',
    500: '#a1b317',
    950: '#000000',
  },
}
SCSS
$custom: #a1b317;
$custom-light: #c1c968;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b317",
  "rgb": {
    "r": 161,
    "g": 179,
    "b": 23
  },
  "hsl": {
    "h": 66.923,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.7279,
    "c": 0.16256,
    "h": 116.9
  },
  "luminance": 0.39879
}

Semantic roles & 50–950 ramp

primary
#A1B317
secondary
#6658CD
accent
#34F44A
background
#FCFCF6
surface
#F8F8EB
border
#D1D1C6
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B317

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

Preview Lab → · Contrast checker → · Palette generator →

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