#A5A331#A5A331

#A5A331 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.6% C 0.132 H 108.4°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#A5A331
RGBrgb(165, 163, 49)
HSLhsl(59, 54%, 42%)
HSVhsv(59, 70%, 65%)
CMYKcmyk(0%, 1.2%, 70.3%, 35.3%)
CIE-LABlab(65.29, -13.13, 56.35)
CIE-LCHlch(65.29, 57.86, 103.12°)
OKLaboklab(69.63% -0.0417 0.1254)
OKLCHoklch(69.63% 0.132 108.4)
XYZxyz(29.1697, 34.4164, 8.0116)
Luminance0.3442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A331 #3133A5
analogous
#A56931 #A5A331 #6DA531
triadic
#A5A331 #31A5A3 #A331A5
tetradic
#A5A331 #31A569 #3133A5 #A5316D
square
#A5A331 #31A569 #3133A5 #A5316D
split-complementary
#A5A331 #316DA5 #6931A5
monochromatic
#474615 #767423 #A5A331 #C9C74A #D7D679

Accessibility & contrast

On white

2.66
#A5A331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#A5A331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A331
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A331#FFFFFF#000000##000000
##A5A3311.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1E
Deuteranopia (green-blind)
#B2A039
Tritanopia (blue-blind)
#B1988D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a331;
/* rgb */ color: rgb(165, 163, 49);
/* oklch */ color: oklch(69.6% 0.132 108.4);
Tailwind
colors: {
  custom: {
    50: '#c3be71',
    500: '#a5a331',
    950: '#000000',
  },
}
SCSS
$custom: #a5a331;
$custom-light: #c3be71;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a331",
  "rgb": {
    "r": 165,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 58.966,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.69628,
    "c": 0.13216,
    "h": 108.4
  },
  "luminance": 0.34415
}

Semantic roles & 50–950 ramp

primary
#A5A331
secondary
#7273C0
accent
#4DDE4A
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A5A331

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

Preview Lab → · Contrast checker → · Palette generator →

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