#A5B042#A5B042

#A5B042 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.7% C 0.134 H 114.6°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#A5B042
RGBrgb(165, 176, 66)
HSLhsl(66, 45%, 47%)
HSVhsv(66, 63%, 69%)
CMYKcmyk(6.2%, 0%, 62.5%, 31%)
CIE-LABlab(69.07, -18.76, 53.30)
CIE-LCHlch(69.07, 56.51, 109.39°)
OKLaboklab(72.69% -0.0557 0.1217)
OKLCHoklch(72.69% 0.134 114.6)
XYZxyz(32.0265, 39.4439, 11.0795)
Luminance0.3944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B042 #4D42B0
analogous
#B08442 #A5B042 #6EB042
triadic
#A5B042 #42A5B0 #B042A5
tetradic
#A5B042 #42B084 #4D42B0 #B0426E
square
#A5B042 #42B084 #4D42B0 #B0426E
split-complementary
#A5B042 #426EB0 #8442B0
monochromatic
#525721 #7B8331 #A5B042 #BDC769 #D1D795

Accessibility & contrast

On white

2.36
#A5B042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#A5B042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B042
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B042#FFFFFF#000000##000000
##A5B0421.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA834
Deuteranopia (green-blind)
#BBAA49
Tritanopia (blue-blind)
#AFA699
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a5b042;
/* rgb */ color: rgb(165, 176, 66);
/* oklch */ color: oklch(72.7% 0.134 114.6);
Tailwind
colors: {
  custom: {
    50: '#c2c77b',
    500: '#a5b042',
    950: '#000000',
  },
}
SCSS
$custom: #a5b042;
$custom-light: #c2c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b042",
  "rgb": {
    "r": 165,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 66,
    "s": 45.455,
    "l": 47.451
  },
  "oklch": {
    "l": 0.72691,
    "c": 0.13383,
    "h": 114.6
  },
  "luminance": 0.39443
}

Semantic roles & 50–950 ramp

primary
#A5B042
secondary
#908BC3
accent
#53D560
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A5B042

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

Preview Lab → · Contrast checker → · Palette generator →

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