#A5B31A#A5B31A

#A5B31A is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.1% C 0.160 H 115.4°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#A5B31A
RGBrgb(165, 179, 26)
HSLhsl(65, 75%, 40%)
HSVhsv(65, 85%, 70%)
CMYKcmyk(7.8%, 0%, 85.5%, 29.8%)
CIE-LABlab(69.69, -22.17, 67.31)
CIE-LCHlch(69.69, 70.87, 108.23°)
OKLaboklab(73.12% -0.0686 0.1447)
OKLCHoklch(73.12% 0.16 115.4)
XYZxyz(31.8246, 40.3147, 7.0821)
Luminance0.4031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B31A #281AB3
analogous
#B3741A #A5B31A #59B31A
triadic
#A5B31A #1AA5B3 #B31AA5
tetradic
#A5B31A #1AB374 #281AB3 #B31A59
square
#A5B31A #1AB374 #281AB3 #B31A59
split-complementary
#A5B31A #1A59B3 #741AB3
monochromatic
#42480A #747E12 #A5B31A #CFE02A #DBE860

Accessibility & contrast

On white

2.32
#A5B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#A5B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B31A
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B31A#FFFFFF#000000##000000
##A5B31A1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BFAB2C
Tritanopia (blue-blind)
#B0A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b31a;
/* rgb */ color: rgb(165, 179, 26);
/* oklch */ color: oklch(73.1% 0.160 115.4);
Tailwind
colors: {
  custom: {
    50: '#c4c969',
    500: '#a5b31a',
    950: '#000000',
  },
}
SCSS
$custom: #a5b31a;
$custom-light: #c4c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b31a",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 65.49,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.73117,
    "c": 0.16017,
    "h": 115.4
  },
  "luminance": 0.40314
}

Semantic roles & 50–950 ramp

primary
#A5B31A
secondary
#675DCC
accent
#37F148
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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