#A2AF40#A2AF40

#A2AF40 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.2% C 0.135 H 115.5°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#A2AF40
RGBrgb(162, 175, 64)
HSLhsl(67, 46%, 47%)
HSVhsv(67, 63%, 69%)
CMYKcmyk(7.4%, 0%, 63.4%, 31.4%)
CIE-LABlab(68.54, -19.65, 53.52)
CIE-LCHlch(68.54, 57.02, 110.16°)
OKLaboklab(72.2% -0.0583 0.1219)
OKLCHoklch(72.2% 0.135 115.5)
XYZxyz(31.1564, 38.7119, 10.6804)
Luminance0.3871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF40 #4D40AF
analogous
#AF8540 #A2AF40 #6BAF40
triadic
#A2AF40 #40A2AF #AF40A2
tetradic
#A2AF40 #40AF85 #4D40AF #AF406B
square
#A2AF40 #40AF85 #4D40AF #AF406B
split-complementary
#A2AF40 #406BAF #8540AF
monochromatic
#4F551F #798230 #A2AF40 #BBC765 #CFD792

Accessibility & contrast

On white

2.40
#A2AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#A2AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AF40
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AF40#FFFFFF#000000##000000
##A2AF401.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA632
Deuteranopia (green-blind)
#BAA847
Tritanopia (blue-blind)
#ACA598
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af40;
/* rgb */ color: rgb(162, 175, 64);
/* oklch */ color: oklch(72.2% 0.135 115.5);
Tailwind
colors: {
  custom: {
    50: '#c0c67a',
    500: '#a2af40',
    950: '#000000',
  },
}
SCSS
$custom: #a2af40;
$custom-light: #c0c67a;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af40",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 67.027,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.72204,
    "c": 0.13514,
    "h": 115.5
  },
  "luminance": 0.38711
}

Semantic roles & 50–950 ramp

primary
#A2AF40
secondary
#8F88C3
accent
#52D661
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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