#A5A231#A5A231

#A5A231 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.4% C 0.131 H 107.9°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#A5A231
RGBrgb(165, 162, 49)
HSLhsl(58, 54%, 42%)
HSVhsv(58, 70%, 65%)
CMYKcmyk(0%, 1.8%, 70.3%, 35.3%)
CIE-LABlab(65.01, -12.61, 56.07)
CIE-LCHlch(65.01, 57.48, 102.68°)
OKLaboklab(69.41% -0.0402 0.1248)
OKLCHoklch(69.41% 0.131 107.9)
XYZxyz(28.9928, 34.0627, 7.9527)
Luminance0.3406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A231 #3134A5
analogous
#A56831 #A5A231 #6EA531
triadic
#A5A231 #31A5A2 #A231A5
tetradic
#A5A231 #31A568 #3134A5 #A5316E
square
#A5A231 #31A568 #3134A5 #A5316E
split-complementary
#A5A231 #316EA5 #6831A5
monochromatic
#474515 #767423 #A5A231 #C9C64A #D7D579

Accessibility & contrast

On white

2.69
#A5A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#A5A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A231
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A231#FFFFFF#000000##000000
##A5A2311.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C1F
Deuteranopia (green-blind)
#B1A039
Tritanopia (blue-blind)
#B1978C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a231;
/* rgb */ color: rgb(165, 162, 49);
/* oklch */ color: oklch(69.4% 0.131 107.9);
Tailwind
colors: {
  custom: {
    50: '#c3bd71',
    500: '#a5a231',
    950: '#000000',
  },
}
SCSS
$custom: #a5a231;
$custom-light: #c3bd71;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a231",
  "rgb": {
    "r": 165,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 58.448,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.69405,
    "c": 0.13115,
    "h": 107.9
  },
  "luminance": 0.34062
}

Semantic roles & 50–950 ramp

primary
#A5A231
secondary
#7274C0
accent
#4EDE4A
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A5A231

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

Preview Lab → · Contrast checker → · Palette generator →

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