#A2AF2A#A2AF2A

#A2AF2A is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.0% C 0.150 H 115.2°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#A2AF2A
RGBrgb(162, 175, 42)
HSLhsl(66, 61%, 43%)
HSVhsv(66, 76%, 69%)
CMYKcmyk(7.4%, 0%, 76%, 31.4%)
CIE-LABlab(68.39, -20.90, 61.71)
CIE-LCHlch(68.39, 65.15, 108.71°)
OKLaboklab(72.04% -0.0638 0.1356)
OKLCHoklch(72.04% 0.15 115.2)
XYZxyz(30.6491, 38.5090, 8.0085)
Luminance0.3851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF2A #372AAF
analogous
#AF7A2A #A2AF2A #5FAF2A
triadic
#A2AF2A #2AA2AF #AF2AA2
tetradic
#A2AF2A #2AAF7A #372AAF #AF2A5F
square
#A2AF2A #2AAF7A #372AAF #AF2A5F
split-complementary
#A2AF2A #2A5FAF #7A2AAF
monochromatic
#474C12 #747E1E #A2AF2A #C4D244 #D4DE75

Accessibility & contrast

On white

2.41
#A2AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#A2AF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AF2A
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AF2A#FFFFFF#000000##000000
##A2AF2A1.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA608
Deuteranopia (green-blind)
#BBA836
Tritanopia (blue-blind)
#ADA596
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af2a;
/* rgb */ color: rgb(162, 175, 42);
/* oklch */ color: oklch(72.0% 0.150 115.2);
Tailwind
colors: {
  custom: {
    50: '#c1c66e',
    500: '#a2af2a',
    950: '#000000',
  },
}
SCSS
$custom: #a2af2a;
$custom-light: #c1c66e;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af2a",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 65.865,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72038,
    "c": 0.14986,
    "h": 115.2
  },
  "luminance": 0.38508
}

Semantic roles & 50–950 ramp

primary
#A2AF2A
secondary
#786FC6
accent
#43E453
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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