#A5A52B#A5A52B

#A5A52B is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.0% C 0.138 H 109.5°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#A5A52B
RGBrgb(165, 165, 43)
HSLhsl(60, 59%, 41%)
HSVhsv(60, 74%, 65%)
CMYKcmyk(0%, 0%, 73.9%, 35.3%)
CIE-LABlab(65.81, -14.47, 59.05)
CIE-LCHlch(65.81, 60.79, 103.77°)
OKLaboklab(70.03% -0.046 0.13)
OKLCHoklch(70.03% 0.138 109.5)
XYZxyz(29.4093, 35.0849, 7.5079)
Luminance0.3508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A52B #2B2BA5
analogous
#A5682B #A5A52B #68A52B
triadic
#A5A52B #2BA5A5 #A52BA5
tetradic
#A5A52B #2BA568 #2B2BA5 #A52B68
square
#A5A52B #2BA568 #2B2BA5 #A52B68
split-complementary
#A5A52B #2B68A5 #682BA5
monochromatic
#444412 #74741E #A5A52B #CDCD40 #DADA71

Accessibility & contrast

On white

2.62
#A5A52B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#A5A52B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A52B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A52B#FFFFFF#000000##000000
##A5A52B1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E12
Deuteranopia (green-blind)
#B4A235
Tritanopia (blue-blind)
#B19A8E
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a5a52b;
/* rgb */ color: rgb(165, 165, 43);
/* oklch */ color: oklch(70.0% 0.138 109.5);
Tailwind
colors: {
  custom: {
    50: '#c3bf6e',
    500: '#a5a52b',
    950: '#000000',
  },
}
SCSS
$custom: #a5a52b;
$custom-light: #c3bf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a52b",
  "rgb": {
    "r": 165,
    "g": 165,
    "b": 43
  },
  "hsl": {
    "h": 60,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.70033,
    "c": 0.13793,
    "h": 109.5
  },
  "luminance": 0.35084
}

Semantic roles & 50–950 ramp

primary
#A5A52B
secondary
#6B6BC1
accent
#46E246
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A5A52B

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

Preview Lab → · Contrast checker → · Palette generator →

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