#A1B318#A1B318

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

Color values

HEX#A1B318
RGBrgb(161, 179, 24)
HSLhsl(67, 76%, 40%)
HSVhsv(67, 87%, 70%)
CMYKcmyk(10.1%, 0%, 86.6%, 29.8%)
CIE-LABlab(69.39, -23.93, 67.37)
CIE-LCHlch(69.39, 71.49, 109.56°)
OKLaboklab(72.79% -0.0734 0.1447)
OKLCHoklch(72.79% 0.162 116.9)
XYZxyz(30.9838, 39.8836, 6.9301)
Luminance0.3988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B318 #2A18B3
analogous
#B37818 #A1B318 #53B318
triadic
#A1B318 #18A1B3 #B318A1
tetradic
#A1B318 #18B378 #2A18B3 #B31853
square
#A1B318 #18B378 #2A18B3 #B31853
split-complementary
#A1B318 #1853B3 #7818B3
monochromatic
#40470A #707D11 #A1B318 #CCE226 #D9E95C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #a1b318;
/* rgb */ color: rgb(161, 179, 24);
/* oklch */ color: oklch(72.8% 0.162 116.9);
Tailwind
colors: {
  custom: {
    50: '#c1c968',
    500: '#a1b318',
    950: '#000000',
  },
}
SCSS
$custom: #a1b318;
$custom-light: #c1c968;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b318",
  "rgb": {
    "r": 161,
    "g": 179,
    "b": 24
  },
  "hsl": {
    "h": 66.968,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.72794,
    "c": 0.16224,
    "h": 116.9
  },
  "luminance": 0.39883
}

Semantic roles & 50–950 ramp

primary
#A1B318
secondary
#675ACD
accent
#35F34B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B318

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

Preview Lab → · Contrast checker → · Palette generator →

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