#A5B41F#A5B41F

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

Color values

HEX#A5B41F
RGBrgb(165, 180, 31)
HSLhsl(66, 71%, 41%)
HSVhsv(66, 83%, 71%)
CMYKcmyk(8.3%, 0%, 82.8%, 29.4%)
CIE-LABlab(69.99, -22.52, 66.39)
CIE-LCHlch(69.99, 70.11, 108.73°)
OKLaboklab(73.36% -0.0693 0.1436)
OKLCHoklch(73.36% 0.159 115.8)
XYZxyz(32.0866, 40.7413, 7.4696)
Luminance0.4074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B41F #2E1FB4
analogous
#B4791F #A5B41F #5BB41F
triadic
#A5B41F #1FA5B4 #B41FA5
tetradic
#A5B41F #1FB479 #2E1FB4 #B41F5B
square
#A5B41F #1FB479 #2E1FB4 #B41F5B
split-complementary
#A5B41F #1F5BB4 #791FB4
monochromatic
#454C0D #758016 #A5B41F #CBDC34 #D9E568

Accessibility & contrast

On white

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

On black

9.15
#A5B41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B41F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B41F#FFFFFF#000000##000000
##A5B41F1.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5b41f;
/* rgb */ color: rgb(165, 180, 31);
/* oklch */ color: oklch(73.4% 0.159 115.8);
Tailwind
colors: {
  custom: {
    50: '#c4ca6b',
    500: '#a5b41f',
    950: '#000000',
  },
}
SCSS
$custom: #a5b41f;
$custom-light: #c4ca6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b41f",
  "rgb": {
    "r": 165,
    "g": 180,
    "b": 31
  },
  "hsl": {
    "h": 66.04,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.73364,
    "c": 0.15939,
    "h": 115.8
  },
  "luminance": 0.40741
}

Semantic roles & 50–950 ramp

primary
#A5B41F
secondary
#6F64CB
accent
#3AED4C
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B41F

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

Preview Lab → · Contrast checker → · Palette generator →

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