#A8B31A#A8B31A

#A8B31A is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.4% C 0.159 H 114.2°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#A8B31A
RGBrgb(168, 179, 26)
HSLhsl(64, 75%, 40%)
HSVhsv(64, 85%, 70%)
CMYKcmyk(6.1%, 0%, 85.5%, 29.8%)
CIE-LABlab(69.92, -20.88, 67.60)
CIE-LCHlch(69.92, 70.75, 107.16°)
OKLaboklab(73.36% -0.0652 0.1452)
OKLCHoklch(73.36% 0.159 114.2)
XYZxyz(32.4561, 40.6403, 7.1117)
Luminance0.4064 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B31A #251AB3
analogous
#B3721A #A8B31A #5BB31A
triadic
#A8B31A #1AA8B3 #B31AA8
tetradic
#A8B31A #1AB372 #251AB3 #B31A5B
square
#A8B31A #1AB372 #251AB3 #B31A5B
split-complementary
#A8B31A #1A5BB3 #721AB3
monochromatic
#44480A #767E12 #A8B31A #D3E02A #DEE860

Accessibility & contrast

On white

2.30
#A8B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#A8B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B31A
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B31A#FFFFFF#000000##000000
##A8B31A1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C0AC2C
Tritanopia (blue-blind)
#B4A899
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a8b31a;
/* rgb */ color: rgb(168, 179, 26);
/* oklch */ color: oklch(73.4% 0.159 114.2);
Tailwind
colors: {
  custom: {
    50: '#c6c969',
    500: '#a8b31a',
    950: '#000000',
  },
}
SCSS
$custom: #a8b31a;
$custom-light: #c6c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b31a",
  "rgb": {
    "r": 168,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 64.314,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.73359,
    "c": 0.15919,
    "h": 114.2
  },
  "luminance": 0.4064
}

Semantic roles & 50–950 ramp

primary
#A8B31A
secondary
#655DCC
accent
#37F144
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #A8B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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