#A5B31E#A5B31E

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

Color values

HEX#A5B31E
RGBrgb(165, 179, 30)
HSLhsl(66, 71%, 41%)
HSVhsv(66, 83%, 70%)
CMYKcmyk(7.8%, 0%, 83.2%, 29.8%)
CIE-LABlab(69.71, -22.05, 66.39)
CIE-LCHlch(69.71, 69.96, 108.37°)
OKLaboklab(73.13% -0.068 0.1434)
OKLCHoklch(73.13% 0.159 115.4)
XYZxyz(31.8725, 40.3338, 7.3343)
Luminance0.4033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B31E #2C1EB3
analogous
#B3761E #A5B31E #5AB31E
triadic
#A5B31E #1EA5B3 #B31EA5
tetradic
#A5B31E #1EB376 #2C1EB3 #B31E5A
square
#A5B31E #1EB376 #2C1EB3 #B31E5A
split-complementary
#A5B31E #1E5AB3 #761EB3
monochromatic
#444A0C #757F15 #A5B31E #CDDD32 #D9E566

Accessibility & contrast

On white

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

On black

9.07
#A5B31E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B31E
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B31E#FFFFFF#000000##000000
##A5B31E1.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5b31e;
/* rgb */ color: rgb(165, 179, 30);
/* oklch */ color: oklch(73.1% 0.159 115.4);
Tailwind
colors: {
  custom: {
    50: '#c4c96a',
    500: '#a5b31e',
    950: '#000000',
  },
}
SCSS
$custom: #a5b31e;
$custom-light: #c4c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b31e",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 30
  },
  "hsl": {
    "h": 65.638,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.73132,
    "c": 0.15872,
    "h": 115.4
  },
  "luminance": 0.40333
}

Semantic roles & 50–950 ramp

primary
#A5B31E
secondary
#6C62CB
accent
#3AEE4B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B31E

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

Preview Lab → · Contrast checker → · Palette generator →

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