#A5B31F#A5B31F

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

Color values

HEX#A5B31F
RGBrgb(165, 179, 31)
HSLhsl(66, 70%, 41%)
HSVhsv(66, 83%, 70%)
CMYKcmyk(7.8%, 0%, 82.7%, 29.8%)
CIE-LABlab(69.71, -22.02, 66.15)
CIE-LCHlch(69.71, 69.72, 108.41°)
OKLaboklab(73.14% -0.0679 0.143)
OKLCHoklch(73.14% 0.158 115.4)
XYZxyz(31.8854, 40.3390, 7.4026)
Luminance0.4034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B31F #2D1FB3
analogous
#B3771F #A5B31F #5BB31F
triadic
#A5B31F #1FA5B3 #B31FA5
tetradic
#A5B31F #1FB377 #2D1FB3 #B31F5B
square
#A5B31F #1FB377 #2D1FB3 #B31F5B
split-complementary
#A5B31F #1F5BB3 #771FB3
monochromatic
#454B0D #757F16 #A5B31F #CCDC33 #D9E568

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5B31F#FFFFFF#000000##000000
##A5B31F1.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)
#BFAB2F
Tritanopia (blue-blind)
#B0A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b31f;
/* rgb */ color: rgb(165, 179, 31);
/* oklch */ color: oklch(73.1% 0.158 115.4);
Tailwind
colors: {
  custom: {
    50: '#c4c96b',
    500: '#a5b31f',
    950: '#000000',
  },
}
SCSS
$custom: #a5b31f;
$custom-light: #c4c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b31f",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 65.676,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73136,
    "c": 0.15833,
    "h": 115.4
  },
  "luminance": 0.40338
}

Semantic roles & 50–950 ramp

primary
#A5B31F
secondary
#6D64CA
accent
#3BED4B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B31F

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

Preview Lab → · Contrast checker → · Palette generator →

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