#A5A42A#A5A42A

#A5A42A is a light, vivid yellow. Relative luminance 0.347; OKLCH L 69.8% C 0.138 H 109.0°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#A5A42A
RGBrgb(165, 164, 42)
HSLhsl(60, 59%, 41%)
HSVhsv(60, 75%, 65%)
CMYKcmyk(0%, 0.6%, 74.5%, 35.3%)
CIE-LABlab(65.53, -13.99, 59.12)
CIE-LCHlch(65.53, 60.76, 103.32°)
OKLaboklab(69.8% -0.0448 0.13)
OKLCHoklch(69.8% 0.138 109)
XYZxyz(29.2115, 34.7183, 7.3526)
Luminance0.3472 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A42A #2A2BA5
analogous
#A5662A #A5A42A #68A52A
triadic
#A5A42A #2AA5A4 #A42AA5
tetradic
#A5A42A #2AA566 #2A2BA5 #A52A68
square
#A5A42A #2AA566 #2A2BA5 #A52A68
split-complementary
#A5A42A #2A68A5 #662AA5
monochromatic
#434311 #74741E #A5A42A #CECD3E #DAD96F

Accessibility & contrast

On white

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

On black

7.94
#A5A42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A42A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A42A#FFFFFF#000000##000000
##A5A42A1.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5a42a;
/* rgb */ color: rgb(165, 164, 42);
/* oklch */ color: oklch(69.8% 0.138 109.0);
Tailwind
colors: {
  custom: {
    50: '#c3be6d',
    500: '#a5a42a',
    950: '#000000',
  },
}
SCSS
$custom: #a5a42a;
$custom-light: #c3be6d;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a42a",
  "rgb": {
    "r": 165,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 59.512,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.69803,
    "c": 0.1375,
    "h": 109
  },
  "luminance": 0.34717
}

Semantic roles & 50–950 ramp

primary
#A5A42A
secondary
#696AC1
accent
#46E345
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A5A42A

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

Preview Lab → · Contrast checker → · Palette generator →

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