#A5A42F#A5A42F

#A5A42F is a light, vivid yellow. Relative luminance 0.348; OKLCH L 69.8% C 0.134 H 108.9°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#A5A42F
RGBrgb(165, 164, 47)
HSLhsl(59, 56%, 42%)
HSVhsv(59, 72%, 65%)
CMYKcmyk(0%, 0.6%, 71.5%, 35.3%)
CIE-LABlab(65.56, -13.76, 57.36)
CIE-LCHlch(65.56, 58.99, 103.48°)
OKLaboklab(69.84% -0.0436 0.1272)
OKLCHoklch(69.84% 0.134 108.9)
XYZxyz(29.3067, 34.7564, 7.8537)
Luminance0.3476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A42F #2F30A5
analogous
#A5692F #A5A42F #6BA52F
triadic
#A5A42F #2FA5A4 #A42FA5
tetradic
#A5A42F #2FA569 #2F30A5 #A52F6B
square
#A5A42F #2FA569 #2F30A5 #A52F6B
split-complementary
#A5A42F #2F6BA5 #692FA5
monochromatic
#464514 #757521 #A5A42F #CBC947 #D8D776

Accessibility & contrast

On white

2.64
#A5A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#A5A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A42F
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A42F#FFFFFF#000000##000000
##A5A42F1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1A
Deuteranopia (green-blind)
#B3A138
Tritanopia (blue-blind)
#B1998D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a5a42f;
/* rgb */ color: rgb(165, 164, 47);
/* oklch */ color: oklch(69.8% 0.134 108.9);
Tailwind
colors: {
  custom: {
    50: '#c3be70',
    500: '#a5a42f',
    950: '#000000',
  },
}
SCSS
$custom: #a5a42f;
$custom-light: #c3be70;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a42f",
  "rgb": {
    "r": 165,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 59.492,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.69837,
    "c": 0.13448,
    "h": 108.9
  },
  "luminance": 0.34755
}

Semantic roles & 50–950 ramp

primary
#A5A42F
secondary
#7070C0
accent
#4ADF49
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A5A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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