#A2AF4F#A2AF4F

#A2AF4F is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.4% C 0.122 H 116.0°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#A2AF4F
RGBrgb(162, 175, 79)
HSLhsl(68, 38%, 50%)
HSVhsv(68, 55%, 69%)
CMYKcmyk(7.4%, 0%, 54.9%, 31.4%)
CIE-LABlab(68.68, -18.48, 46.93)
CIE-LCHlch(68.68, 50.43, 111.50°)
OKLaboklab(72.36% -0.0534 0.1097)
OKLCHoklch(72.36% 0.122 116)
XYZxyz(31.6421, 38.9062, 13.2384)
Luminance0.3891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF4F #5C4FAF
analogous
#AF8C4F #A2AF4F #72AF4F
triadic
#A2AF4F #4FA2AF #AF4FA2
tetradic
#A2AF4F #4FAF8C #5C4FAF #AF4F72
square
#A2AF4F #4FAF8C #5C4FAF #AF4F72
split-complementary
#A2AF4F #4F72AF #8C4FAF
monochromatic
#545B29 #7B853C #A2AF4F #B8C279 #CFD5A3

Accessibility & contrast

On white

2.39
#A2AF4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#A2AF4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AF4F
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AF4F#FFFFFF#000000##000000
##A2AF4F1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA745
Deuteranopia (green-blind)
#B9A855
Tritanopia (blue-blind)
#ABA69A
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a2af4f;
/* rgb */ color: rgb(162, 175, 79);
/* oklch */ color: oklch(72.4% 0.122 116.0);
Tailwind
colors: {
  custom: {
    50: '#bfc683',
    500: '#a2af4f',
    950: '#000000',
  },
}
SCSS
$custom: #a2af4f;
$custom-light: #bfc683;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af4f",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 79
  },
  "hsl": {
    "h": 68.125,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.72363,
    "c": 0.12205,
    "h": 116
  },
  "luminance": 0.38906
}

Semantic roles & 50–950 ramp

primary
#A2AF4F
secondary
#9D97C3
accent
#5ACE6A
background
#FCFCF8
surface
#F8F8EF
border
#D1D1CA
text
#12130B
muted
#81827C

Preview Lab

Preview with #A2AF4F

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

Preview Lab → · Contrast checker → · Palette generator →

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