#A5B42E#A5B42E

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

Color values

HEX#A5B42E
RGBrgb(165, 180, 46)
HSLhsl(67, 59%, 44%)
HSVhsv(67, 74%, 71%)
CMYKcmyk(8.3%, 0%, 74.4%, 29.4%)
CIE-LABlab(70.06, -21.93, 62.03)
CIE-LCHlch(70.06, 65.79, 109.47°)
OKLaboklab(73.44% -0.0665 0.1369)
OKLCHoklch(73.44% 0.152 115.9)
XYZxyz(32.3323, 40.8396, 8.7638)
Luminance0.4084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B42E #3D2EB4
analogous
#B4802E #A5B42E #62B42E
triadic
#A5B42E #2EA5B4 #B42EA5
tetradic
#A5B42E #2EB480 #3D2EB4 #B42E62
square
#A5B42E #2EB480 #3D2EB4 #B42E62
split-complementary
#A5B42E #2E62B4 #802EB4
monochromatic
#4C5315 #788322 #A5B42E #C3D24E #D3DE7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5B42E#FFFFFF#000000##000000
##A5B42E1.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)
#C1AB10
Deuteranopia (green-blind)
#C0AC3A
Tritanopia (blue-blind)
#B0A99B
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a5b42e;
/* rgb */ color: rgb(165, 180, 46);
/* oklch */ color: oklch(73.4% 0.152 115.9);
Tailwind
colors: {
  custom: {
    50: '#c3ca71',
    500: '#a5b42e',
    950: '#000000',
  },
}
SCSS
$custom: #a5b42e;
$custom-light: #c3ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b42e",
  "rgb": {
    "r": 165,
    "g": 180,
    "b": 46
  },
  "hsl": {
    "h": 66.716,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73442,
    "c": 0.15218,
    "h": 115.9
  },
  "luminance": 0.40839
}

Semantic roles & 50–950 ramp

primary
#A5B42E
secondary
#8077C7
accent
#45E257
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B42E

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

Preview Lab → · Contrast checker → · Palette generator →

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