#A2AF2F#A2AF2F

#A2AF2F is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.1% C 0.147 H 115.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#A2AF2F
RGBrgb(162, 175, 47)
HSLhsl(66, 58%, 44%)
HSVhsv(66, 73%, 69%)
CMYKcmyk(7.4%, 0%, 73.1%, 31.4%)
CIE-LABlab(68.42, -20.66, 60.05)
CIE-LCHlch(68.42, 63.50, 108.99°)
OKLaboklab(72.07% -0.0627 0.133)
OKLCHoklch(72.07% 0.147 115.3)
XYZxyz(30.7442, 38.5471, 8.5095)
Luminance0.3855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF2F #3C2FAF
analogous
#AF7C2F #A2AF2F #62AF2F
triadic
#A2AF2F #2FA2AF #AF2FA2
tetradic
#A2AF2F #2FAF7C #3C2FAF #AF2F62
square
#A2AF2F #2FAF7C #3C2FAF #AF2F62
split-complementary
#A2AF2F #2F62AF #7C2FAF
monochromatic
#494F15 #757F22 #A2AF2F #C2CF4C #D2DC7C

Accessibility & contrast

On white

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

On black

8.71
#A2AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AF2F
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AF2F#FFFFFF#000000##000000
##A2AF2F1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2af2f;
/* rgb */ color: rgb(162, 175, 47);
/* oklch */ color: oklch(72.1% 0.147 115.3);
Tailwind
colors: {
  custom: {
    50: '#c1c671',
    500: '#a2af2f',
    950: '#000000',
  },
}
SCSS
$custom: #a2af2f;
$custom-light: #c1c671;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af2f",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 66.094,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72069,
    "c": 0.14701,
    "h": 115.3
  },
  "luminance": 0.38547
}

Semantic roles & 50–950 ramp

primary
#A2AF2F
secondary
#7D75C4
accent
#47E157
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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