#A2B242#A2B242

#A2B242 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 72.9% C 0.137 H 116.8°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#A2B242
RGBrgb(162, 178, 66)
HSLhsl(69, 46%, 48%)
HSVhsv(69, 63%, 70%)
CMYKcmyk(9%, 0%, 62.9%, 30.2%)
CIE-LABlab(69.41, -21.02, 53.60)
CIE-LCHlch(69.41, 57.57, 111.41°)
OKLaboklab(72.91% -0.0619 0.1224)
OKLCHoklch(72.91% 0.137 116.8)
XYZxyz(31.8047, 39.9159, 11.1823)
Luminance0.3992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B242 #5242B2
analogous
#B28A42 #A2B242 #6AB242
triadic
#A2B242 #42A2B2 #B242A2
tetradic
#A2B242 #42B28A #5242B2 #B2426A
square
#A2B242 #42B28A #5242B2 #B2426A
split-complementary
#A2B242 #426AB2 #8A42B2
monochromatic
#515921 #798531 #A2B242 #BAC86A #CFD896

Accessibility & contrast

On white

2.34
#A2B242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#A2B242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B242
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B242#FFFFFF#000000##000000
##A2B2421.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA934
Deuteranopia (green-blind)
#BCAA4A
Tritanopia (blue-blind)
#ABA89B
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a2b242;
/* rgb */ color: rgb(162, 178, 66);
/* oklch */ color: oklch(72.9% 0.137 116.8);
Tailwind
colors: {
  custom: {
    50: '#c0c97c',
    500: '#a2b242',
    950: '#000000',
  },
}
SCSS
$custom: #a2b242;
$custom-light: #c0c97c;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b242",
  "rgb": {
    "r": 162,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 68.571,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.72905,
    "c": 0.13712,
    "h": 116.8
  },
  "luminance": 0.39916
}

Semantic roles & 50–950 ramp

primary
#A2B242
secondary
#948CC4
accent
#52D665
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B242

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

Preview Lab → · Contrast checker → · Palette generator →

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