#A2AF2D#A2AF2D

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

Color values

HEX#A2AF2D
RGBrgb(162, 175, 45)
HSLhsl(66, 59%, 43%)
HSVhsv(66, 74%, 69%)
CMYKcmyk(7.4%, 0%, 74.3%, 31.4%)
CIE-LABlab(68.41, -20.76, 60.73)
CIE-LCHlch(68.41, 64.18, 108.87°)
OKLaboklab(72.06% -0.0632 0.134)
OKLCHoklch(72.06% 0.148 115.2)
XYZxyz(30.7048, 38.5313, 8.3019)
Luminance0.3853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF2D #3A2DAF
analogous
#AF7B2D #A2AF2D #61AF2D
triadic
#A2AF2D #2DA2AF #AF2DA2
tetradic
#A2AF2D #2DAF7B #3A2DAF #AF2D61
square
#A2AF2D #2DAF7B #3A2DAF #AF2D61
split-complementary
#A2AF2D #2D61AF #7B2DAF
monochromatic
#484E14 #757E20 #A2AF2D #C3D049 #D3DD7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2AF2D#FFFFFF#000000##000000
##A2AF2D1.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)
#BCA611
Deuteranopia (green-blind)
#BBA838
Tritanopia (blue-blind)
#ADA596
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af2d;
/* rgb */ color: rgb(162, 175, 45);
/* oklch */ color: oklch(72.1% 0.148 115.2);
Tailwind
colors: {
  custom: {
    50: '#c1c670',
    500: '#a2af2d',
    950: '#000000',
  },
}
SCSS
$custom: #a2af2d;
$custom-light: #c1c670;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af2d",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 66,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.72056,
    "c": 0.14818,
    "h": 115.2
  },
  "luminance": 0.38531
}

Semantic roles & 50–950 ramp

primary
#A2AF2D
secondary
#7B73C5
accent
#46E255
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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