#A5A81F#A5A81F

#A5A81F is a light, vivid yellow. Relative luminance 0.361; OKLCH L 70.6% C 0.147 H 111.0°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#A5A81F
RGBrgb(165, 168, 31)
HSLhsl(61, 69%, 39%)
HSVhsv(61, 82%, 66%)
CMYKcmyk(1.8%, 0%, 81.5%, 34.1%)
CIE-LABlab(66.60, -16.48, 63.47)
CIE-LCHlch(66.60, 65.57, 104.56°)
OKLaboklab(70.64% -0.0526 0.1373)
OKLCHoklch(70.64% 0.147 111)
XYZxyz(29.7681, 36.1044, 6.6968)
Luminance0.3610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A81F #221FA8
analogous
#A8671F #A5A81F #61A81F
triadic
#A5A81F #1FA5A8 #A81FA5
tetradic
#A5A81F #1FA867 #221FA8 #A81F61
square
#A5A81F #1FA867 #221FA8 #A81F61
split-complementary
#A5A81F #1F61A8 #671FA8
monochromatic
#40410C #727415 #A5A81F #D4D82C #DFE260

Accessibility & contrast

On white

2.55
#A5A81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#A5A81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A81F
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A81F#FFFFFF#000000##000000
##A5A81F1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B7A42C
Tritanopia (blue-blind)
#B19D8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a5a81f;
/* rgb */ color: rgb(165, 168, 31);
/* oklch */ color: oklch(70.6% 0.147 111.0);
Tailwind
colors: {
  custom: {
    50: '#c4c169',
    500: '#a5a81f',
    950: '#000000',
  },
}
SCSS
$custom: #a5a81f;
$custom-light: #c4c169;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a81f",
  "rgb": {
    "r": 165,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 61.314,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.70642,
    "c": 0.14699,
    "h": 111
  },
  "luminance": 0.36104
}

Semantic roles & 50–950 ramp

primary
#A5A81F
secondary
#5F5DC6
accent
#3CEC40
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A81F

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

Preview Lab → · Contrast checker → · Palette generator →

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