#A2B540#A2B540

#A2B540 is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.6% C 0.142 H 117.9°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#A2B540
RGBrgb(162, 181, 64)
HSLhsl(70, 48%, 48%)
HSVhsv(70, 65%, 71%)
CMYKcmyk(10.5%, 0%, 64.6%, 29%)
CIE-LABlab(70.25, -22.65, 55.33)
CIE-LCHlch(70.25, 59.79, 112.26°)
OKLaboklab(73.57% -0.0666 0.1258)
OKLCHoklch(73.57% 0.142 117.9)
XYZxyz(32.3502, 41.0996, 11.0783)
Luminance0.4110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B540 #5340B5
analogous
#B58E40 #A2B540 #67B540
triadic
#A2B540 #40A2B5 #B540A2
tetradic
#A2B540 #40B58E #5340B5 #B54067
square
#A2B540 #40B58E #5340B5 #B54067
split-complementary
#A2B540 #4067B5 #8E40B5
monochromatic
#515B20 #7A8830 #A2B540 #BACA68 #CFDA96

Accessibility & contrast

On white

2.28
#A2B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#A2B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B540
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B540#FFFFFF#000000##000000
##A2B5401.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB31
Deuteranopia (green-blind)
#BFAC48
Tritanopia (blue-blind)
#ABAB9D
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a2b540;
/* rgb */ color: rgb(162, 181, 64);
/* oklch */ color: oklch(73.6% 0.142 117.9);
Tailwind
colors: {
  custom: {
    50: '#c0cb7b',
    500: '#a2b540',
    950: '#000000',
  },
}
SCSS
$custom: #a2b540;
$custom-light: #c0cb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b540",
  "rgb": {
    "r": 162,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 69.744,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.73571,
    "c": 0.14231,
    "h": 117.9
  },
  "luminance": 0.41099
}

Semantic roles & 50–950 ramp

primary
#A2B540
secondary
#958BC5
accent
#50D766
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B540

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

Preview Lab → · Contrast checker → · Palette generator →

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