#A2B142#A2B142

#A2B142 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.7% C 0.136 H 116.4°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#A2B142
RGBrgb(162, 177, 66)
HSLhsl(68, 46%, 48%)
HSVhsv(68, 63%, 69%)
CMYKcmyk(8.5%, 0%, 62.7%, 30.6%)
CIE-LABlab(69.13, -20.52, 53.29)
CIE-LCHlch(69.13, 57.11, 111.06°)
OKLaboklab(72.68% -0.0605 0.1217)
OKLCHoklch(72.68% 0.136 116.4)
XYZxyz(31.6064, 39.5194, 11.1162)
Luminance0.3952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B142 #5142B1
analogous
#B18842 #A2B142 #6BB142
triadic
#A2B142 #42A2B1 #B142A2
tetradic
#A2B142 #42B188 #5142B1 #B1426B
square
#A2B142 #42B188 #5142B1 #B1426B
split-complementary
#A2B142 #426BB1 #8842B1
monochromatic
#505821 #798431 #A2B142 #BAC769 #CFD896

Accessibility & contrast

On white

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

On black

8.90
#A2B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B142
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B142#FFFFFF#000000##000000
##A2B1421.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2b142;
/* rgb */ color: rgb(162, 177, 66);
/* oklch */ color: oklch(72.7% 0.136 116.4);
Tailwind
colors: {
  custom: {
    50: '#c0c87b',
    500: '#a2b142',
    950: '#000000',
  },
}
SCSS
$custom: #a2b142;
$custom-light: #c0c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b142",
  "rgb": {
    "r": 162,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 68.108,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.72678,
    "c": 0.13592,
    "h": 116.4
  },
  "luminance": 0.39519
}

Semantic roles & 50–950 ramp

primary
#A2B142
secondary
#938BC3
accent
#52D564
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B142

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

Preview Lab → · Contrast checker → · Palette generator →

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