#A2B542#A2B542

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

Color values

HEX#A2B542
RGBrgb(162, 181, 66)
HSLhsl(70, 47%, 48%)
HSVhsv(70, 64%, 71%)
CMYKcmyk(10.5%, 0%, 63.5%, 29%)
CIE-LABlab(70.26, -22.51, 54.51)
CIE-LCHlch(70.26, 58.97, 112.44°)
OKLaboklab(73.59% -0.066 0.1243)
OKLCHoklch(73.59% 0.141 118)
XYZxyz(32.4081, 41.1228, 11.3834)
Luminance0.4112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B542 #5542B5
analogous
#B58E42 #A2B542 #68B542
triadic
#A2B542 #42A2B5 #B542A2
tetradic
#A2B542 #42B58E #5542B5 #B54268
square
#A2B542 #42B58E #5542B5 #B54268
split-complementary
#A2B542 #4268B5 #8E42B5
monochromatic
#525B21 #7A8832 #A2B542 #BAC96B #CFD998

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2B542#FFFFFF#000000##000000
##A2B5421.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)
#C1AC33
Deuteranopia (green-blind)
#BFAC4A
Tritanopia (blue-blind)
#ABAB9D
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a2b542;
/* rgb */ color: rgb(162, 181, 66);
/* oklch */ color: oklch(73.6% 0.141 118.0);
Tailwind
colors: {
  custom: {
    50: '#c0cb7c',
    500: '#a2b542',
    950: '#000000',
  },
}
SCSS
$custom: #a2b542;
$custom-light: #c0cb7c;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b542",
  "rgb": {
    "r": 162,
    "g": 181,
    "b": 66
  },
  "hsl": {
    "h": 69.913,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.73589,
    "c": 0.14075,
    "h": 118
  },
  "luminance": 0.41122
}

Semantic roles & 50–950 ramp

primary
#A2B542
secondary
#978EC5
accent
#52D668
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B542

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

Preview Lab → · Contrast checker → · Palette generator →

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