#A5B42D#A5B42D

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

Color values

HEX#A5B42D
RGBrgb(165, 180, 45)
HSLhsl(67, 60%, 44%)
HSVhsv(67, 75%, 71%)
CMYKcmyk(8.3%, 0%, 75%, 29.4%)
CIE-LABlab(70.06, -21.97, 62.36)
CIE-LCHlch(70.06, 66.12, 109.41°)
OKLaboklab(73.44% -0.0667 0.1374)
OKLCHoklch(73.44% 0.153 115.9)
XYZxyz(32.3128, 40.8318, 8.6612)
Luminance0.4083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B42D #3C2DB4
analogous
#B4802D #A5B42D #62B42D
triadic
#A5B42D #2DA5B4 #B42DA5
tetradic
#A5B42D #2DB480 #3C2DB4 #B42D62
square
#A5B42D #2DB480 #3C2DB4 #B42D62
split-complementary
#A5B42D #2D62B4 #802DB4
monochromatic
#4B5215 #788321 #A5B42D #C3D24C #D4DE7D

Accessibility & contrast

On white

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

On black

9.17
#A5B42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B42D
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B42D#FFFFFF#000000##000000
##A5B42D1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5b42d;
/* rgb */ color: rgb(165, 180, 45);
/* oklch */ color: oklch(73.4% 0.153 115.9);
Tailwind
colors: {
  custom: {
    50: '#c3ca71',
    500: '#a5b42d',
    950: '#000000',
  },
}
SCSS
$custom: #a5b42d;
$custom-light: #c3ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b42d",
  "rgb": {
    "r": 165,
    "g": 180,
    "b": 45
  },
  "hsl": {
    "h": 66.667,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.73436,
    "c": 0.15274,
    "h": 115.9
  },
  "luminance": 0.40831
}

Semantic roles & 50–950 ramp

primary
#A5B42D
secondary
#7F76C7
accent
#45E356
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B42D

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

Preview Lab → · Contrast checker → · Palette generator →

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