#A2AF30#A2AF30

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

Color values

HEX#A2AF30
RGBrgb(162, 175, 48)
HSLhsl(66, 57%, 44%)
HSVhsv(66, 73%, 69%)
CMYKcmyk(7.4%, 0%, 72.6%, 31.4%)
CIE-LABlab(68.43, -20.61, 59.70)
CIE-LCHlch(68.43, 63.16, 109.05°)
OKLaboklab(72.08% -0.0625 0.1324)
OKLCHoklch(72.08% 0.146 115.3)
XYZxyz(30.7646, 38.5552, 8.6170)
Luminance0.3856 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF30 #3D30AF
analogous
#AF7C30 #A2AF30 #62AF30
triadic
#A2AF30 #30A2AF #AF30A2
tetradic
#A2AF30 #30AF7C #3D30AF #AF3062
square
#A2AF30 #30AF7C #3D30AF #AF3062
split-complementary
#A2AF30 #3062AF #7C30AF
monochromatic
#494F16 #767F23 #A2AF30 #C1CE4E #D2DC7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2AF30#FFFFFF#000000##000000
##A2AF301.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)
#BCA618
Deuteranopia (green-blind)
#BBA83A
Tritanopia (blue-blind)
#ADA596
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af30;
/* rgb */ color: rgb(162, 175, 48);
/* oklch */ color: oklch(72.1% 0.146 115.3);
Tailwind
colors: {
  custom: {
    50: '#c1c671',
    500: '#a2af30',
    950: '#000000',
  },
}
SCSS
$custom: #a2af30;
$custom-light: #c1c671;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af30",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 66.142,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.72076,
    "c": 0.14641,
    "h": 115.3
  },
  "luminance": 0.38555
}

Semantic roles & 50–950 ramp

primary
#A2AF30
secondary
#7E76C4
accent
#48E057
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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