#A5B040#A5B040

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

Color values

HEX#A5B040
RGBrgb(165, 176, 64)
HSLhsl(66, 47%, 47%)
HSVhsv(66, 64%, 69%)
CMYKcmyk(6.2%, 0%, 63.6%, 31%)
CIE-LABlab(69.05, -18.89, 54.14)
CIE-LCHlch(69.05, 57.34, 109.24°)
OKLaboklab(72.67% -0.0563 0.1232)
OKLCHoklch(72.67% 0.135 114.6)
XYZxyz(31.9686, 39.4207, 10.7744)
Luminance0.3942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B040 #4B40B0
analogous
#B08340 #A5B040 #6DB040
triadic
#A5B040 #40A5B0 #B040A5
tetradic
#A5B040 #40B083 #4B40B0 #B0406D
square
#A5B040 #40B083 #4B40B0 #B0406D
split-complementary
#A5B040 #406DB0 #8340B0
monochromatic
#51561F #7B8330 #A5B040 #BEC766 #D1D893

Accessibility & contrast

On white

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

On black

8.88
#A5B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B040
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B040#FFFFFF#000000##000000
##A5B0401.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5b040;
/* rgb */ color: rgb(165, 176, 64);
/* oklch */ color: oklch(72.7% 0.135 114.6);
Tailwind
colors: {
  custom: {
    50: '#c2c77a',
    500: '#a5b040',
    950: '#000000',
  },
}
SCSS
$custom: #a5b040;
$custom-light: #c2c77a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b040",
  "rgb": {
    "r": 165,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 65.893,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72672,
    "c": 0.13542,
    "h": 114.6
  },
  "luminance": 0.3942
}

Semantic roles & 50–950 ramp

primary
#A5B040
secondary
#8F89C3
accent
#51D65F
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A5B040

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

Preview Lab → · Contrast checker → · Palette generator →

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