#A2B042#A2B042

#A2B042 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.5% C 0.135 H 116.0°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#A2B042
RGBrgb(162, 176, 66)
HSLhsl(68, 45%, 47%)
HSVhsv(68, 63%, 69%)
CMYKcmyk(8%, 0%, 62.5%, 31%)
CIE-LABlab(68.84, -20.02, 52.99)
CIE-LCHlch(68.84, 56.64, 110.69°)
OKLaboklab(72.45% -0.0591 0.1211)
OKLCHoklch(72.45% 0.135 116)
XYZxyz(31.4097, 39.1258, 11.0506)
Luminance0.3912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B042 #5042B0
analogous
#B08742 #A2B042 #6BB042
triadic
#A2B042 #42A2B0 #B042A2
tetradic
#A2B042 #42B087 #5042B0 #B0426B
square
#A2B042 #42B087 #5042B0 #B0426B
split-complementary
#A2B042 #426BB0 #8742B0
monochromatic
#505721 #798331 #A2B042 #BBC769 #CFD795

Accessibility & contrast

On white

2.38
#A2B042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#A2B042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B042
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B042#FFFFFF#000000##000000
##A2B0421.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA735
Deuteranopia (green-blind)
#BAA949
Tritanopia (blue-blind)
#ACA699
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a2b042;
/* rgb */ color: rgb(162, 176, 66);
/* oklch */ color: oklch(72.5% 0.135 116.0);
Tailwind
colors: {
  custom: {
    50: '#c0c77b',
    500: '#a2b042',
    950: '#000000',
  },
}
SCSS
$custom: #a2b042;
$custom-light: #c0c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b042",
  "rgb": {
    "r": 162,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 67.636,
    "s": 45.455,
    "l": 47.451
  },
  "oklch": {
    "l": 0.7245,
    "c": 0.13472,
    "h": 116
  },
  "luminance": 0.39125
}

Semantic roles & 50–950 ramp

primary
#A2B042
secondary
#928BC3
accent
#53D563
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B042

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

Preview Lab → · Contrast checker → · Palette generator →

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