#A5B942#A5B942

#A5B942 is a light, vivid yellow-green. Relative luminance 0.431; OKLCH L 74.7% C 0.145 H 118.2°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#A5B942
RGBrgb(165, 185, 66)
HSLhsl(70, 47%, 49%)
HSVhsv(70, 64%, 73%)
CMYKcmyk(10.8%, 0%, 64.3%, 27.5%)
CIE-LABlab(71.62, -23.24, 56.01)
CIE-LCHlch(71.62, 60.65, 112.54°)
OKLaboklab(74.73% -0.0683 0.1274)
OKLCHoklch(74.73% 0.145 118.2)
XYZxyz(33.8500, 43.0909, 11.6873)
Luminance0.4309 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B942 #5642B9
analogous
#B99242 #A5B942 #6AB942
triadic
#A5B942 #42A5B9 #B942A5
tetradic
#A5B942 #42B992 #5642B9 #B9426A
square
#A5B942 #42B992 #5642B9 #B9426A
split-complementary
#A5B942 #426AB9 #9242B9
monochromatic
#555F22 #7D8C32 #A5B942 #BBCB6D #D0DB9A

Accessibility & contrast

On white

2.18
#A5B942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#A5B942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B942
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B942#FFFFFF#000000##000000
##A5B9421.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF33
Deuteranopia (green-blind)
#C3B04A
Tritanopia (blue-blind)
#AEAFA0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #a5b942;
/* rgb */ color: rgb(165, 185, 66);
/* oklch */ color: oklch(74.7% 0.145 118.2);
Tailwind
colors: {
  custom: {
    50: '#c2ce7c',
    500: '#a5b942',
    950: '#000000',
  },
}
SCSS
$custom: #a5b942;
$custom-light: #c2ce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b942",
  "rgb": {
    "r": 165,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 70.084,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.74733,
    "c": 0.14455,
    "h": 118.2
  },
  "luminance": 0.43091
}

Semantic roles & 50–950 ramp

primary
#A5B942
secondary
#9990C7
accent
#51D767
background
#FCFCF7
surface
#F8F9EE
border
#D1D2C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A5B942

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

Preview Lab → · Contrast checker → · Palette generator →

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