#A5B42A#A5B42A

#A5B42A is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.4% C 0.154 H 115.9°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#A5B42A
RGBrgb(165, 180, 42)
HSLhsl(67, 62%, 44%)
HSVhsv(67, 77%, 71%)
CMYKcmyk(8.3%, 0%, 76.7%, 29.4%)
CIE-LABlab(70.04, -22.11, 63.32)
CIE-LCHlch(70.04, 67.07, 109.25°)
OKLaboklab(73.42% -0.0673 0.1389)
OKLCHoklch(73.42% 0.154 115.9)
XYZxyz(32.2571, 40.8095, 8.3678)
Luminance0.4081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B42A #392AB4
analogous
#B47E2A #A5B42A #60B42A
triadic
#A5B42A #2AA5B4 #B42AA5
tetradic
#A5B42A #2AB47E #392AB4 #B42A60
square
#A5B42A #2AB47E #392AB4 #B42A60
split-complementary
#A5B42A #2A60B4 #7E2AB4
monochromatic
#4A5113 #78821E #A5B42A #C5D447 #D4E079

Accessibility & contrast

On white

2.29
#A5B42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#A5B42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B42A
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B42A#FFFFFF#000000##000000
##A5B42A1.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA03
Deuteranopia (green-blind)
#C0AC37
Tritanopia (blue-blind)
#B0A99A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a5b42a;
/* rgb */ color: rgb(165, 180, 42);
/* oklch */ color: oklch(73.4% 0.154 115.9);
Tailwind
colors: {
  custom: {
    50: '#c3ca6f',
    500: '#a5b42a',
    950: '#000000',
  },
}
SCSS
$custom: #a5b42a;
$custom-light: #c3ca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b42a",
  "rgb": {
    "r": 165,
    "g": 180,
    "b": 42
  },
  "hsl": {
    "h": 66.522,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73418,
    "c": 0.15436,
    "h": 115.9
  },
  "luminance": 0.40809
}

Semantic roles & 50–950 ramp

primary
#A5B42A
secondary
#7B72C8
accent
#43E554
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B42A

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

Preview Lab → · Contrast checker → · Palette generator →

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