#A5AC31#A5AC31

#A5AC31 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.6% C 0.142 H 112.7°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#A5AC31
RGBrgb(165, 172, 49)
HSLhsl(63, 56%, 43%)
HSVhsv(63, 72%, 67%)
CMYKcmyk(4.1%, 0%, 71.5%, 32.5%)
CIE-LABlab(67.82, -17.76, 58.83)
CIE-LCHlch(67.82, 61.45, 106.80°)
OKLaboklab(71.65% -0.0546 0.1306)
OKLCHoklch(71.65% 0.142 112.7)
XYZxyz(30.8249, 37.7268, 8.5634)
Luminance0.3773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AC31 #3831AC
analogous
#AC7531 #A5AC31 #67AC31
triadic
#A5AC31 #31A5AC #AC31A5
tetradic
#A5AC31 #31AC75 #3831AC #AC3167
square
#A5AC31 #31AC75 #3831AC #AC3167
split-complementary
#A5AC31 #3167AC #7531AC
monochromatic
#4A4D16 #777C23 #A5AC31 #C5CC4E #D5DA7D

Accessibility & contrast

On white

2.46
#A5AC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#A5AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AC31
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AC31#FFFFFF#000000##000000
##A5AC311.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A41B
Deuteranopia (green-blind)
#B9A73B
Tritanopia (blue-blind)
#B0A294
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a5ac31;
/* rgb */ color: rgb(165, 172, 49);
/* oklch */ color: oklch(71.6% 0.142 112.7);
Tailwind
colors: {
  custom: {
    50: '#c3c472',
    500: '#a5ac31',
    950: '#000000',
  },
}
SCSS
$custom: #a5ac31;
$custom-light: #c3c472;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ac31",
  "rgb": {
    "r": 165,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 63.415,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.71648,
    "c": 0.14161,
    "h": 112.7
  },
  "luminance": 0.37726
}

Semantic roles & 50–950 ramp

primary
#A5AC31
secondary
#7A76C3
accent
#49DF51
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A5AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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