#A2AF4E#A2AF4E

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

Color values

HEX#A2AF4E
RGBrgb(162, 175, 78)
HSLhsl(68, 38%, 50%)
HSVhsv(68, 55%, 69%)
CMYKcmyk(7.4%, 0%, 55.4%, 31.4%)
CIE-LABlab(68.67, -18.57, 47.38)
CIE-LCHlch(68.67, 50.89, 111.40°)
OKLaboklab(72.35% -0.0537 0.1106)
OKLCHoklch(72.35% 0.123 115.9)
XYZxyz(31.6059, 38.8918, 13.0481)
Luminance0.3889 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF4E #5B4EAF
analogous
#AF8C4E #A2AF4E #72AF4E
triadic
#A2AF4E #4EA2AF #AF4EA2
tetradic
#A2AF4E #4EAF8C #5B4EAF #AF4E72
square
#A2AF4E #4EAF8C #5B4EAF #AF4E72
split-complementary
#A2AF4E #4E72AF #8C4EAF
monochromatic
#545A28 #7B853B #A2AF4E #B9C378 #CFD6A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2AF4E#FFFFFF#000000##000000
##A2AF4E1.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)
#BAA744
Deuteranopia (green-blind)
#B9A854
Tritanopia (blue-blind)
#ABA69A
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af4e;
/* rgb */ color: rgb(162, 175, 78);
/* oklch */ color: oklch(72.4% 0.123 115.9);
Tailwind
colors: {
  custom: {
    50: '#c0c683',
    500: '#a2af4e',
    950: '#000000',
  },
}
SCSS
$custom: #a2af4e;
$custom-light: #c0c683;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af4e",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 78
  },
  "hsl": {
    "h": 68.041,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72351,
    "c": 0.12299,
    "h": 115.9
  },
  "luminance": 0.38891
}

Semantic roles & 50–950 ramp

primary
#A2AF4E
secondary
#9C96C3
accent
#5ACE69
background
#FCFCF8
surface
#F8F8EF
border
#D1D1CA
text
#12130B
muted
#81827C

Preview Lab

Preview with #A2AF4E

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

Preview Lab → · Contrast checker → · Palette generator →

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