#A2AF27#A2AF27

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

Color values

HEX#A2AF27
RGBrgb(162, 175, 39)
HSLhsl(66, 64%, 42%)
HSVhsv(66, 78%, 69%)
CMYKcmyk(7.4%, 0%, 77.7%, 31.4%)
CIE-LABlab(68.38, -21.03, 62.65)
CIE-LCHlch(68.38, 66.08, 108.55°)
OKLaboklab(72.02% -0.0644 0.137)
OKLCHoklch(72.02% 0.151 115.2)
XYZxyz(30.5974, 38.4883, 7.7362)
Luminance0.3849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF27 #3427AF
analogous
#AF7827 #A2AF27 #5EAF27
triadic
#A2AF27 #27A2AF #AF27A2
tetradic
#A2AF27 #27AF78 #3427AF #AF275E
square
#A2AF27 #27AF78 #3427AF #AF275E
split-complementary
#A2AF27 #275EAF #7827AF
monochromatic
#454B11 #747D1C #A2AF27 #C6D43F #D5DF71

Accessibility & contrast

On white

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

On black

8.70
#A2AF27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AF27
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AF27#FFFFFF#000000##000000
##A2AF271.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#BBA834
Tritanopia (blue-blind)
#ADA496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af27;
/* rgb */ color: rgb(162, 175, 39);
/* oklch */ color: oklch(72.0% 0.151 115.2);
Tailwind
colors: {
  custom: {
    50: '#c1c66d',
    500: '#a2af27',
    950: '#000000',
  },
}
SCSS
$custom: #a2af27;
$custom-light: #c1c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af27",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 65.735,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.72021,
    "c": 0.15143,
    "h": 115.2
  },
  "luminance": 0.38488
}

Semantic roles & 50–950 ramp

primary
#A2AF27
secondary
#746BC6
accent
#41E751
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A2AF27

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

Preview Lab → · Contrast checker → · Palette generator →

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