#A2AF26#A2AF26

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

Color values

HEX#A2AF26
RGBrgb(162, 175, 38)
HSLhsl(66, 64%, 42%)
HSVhsv(66, 78%, 69%)
CMYKcmyk(7.4%, 0%, 78.3%, 31.4%)
CIE-LABlab(68.37, -21.07, 62.95)
CIE-LCHlch(68.37, 66.38, 108.50°)
OKLaboklab(72.02% -0.0646 0.1375)
OKLCHoklch(72.02% 0.152 115.2)
XYZxyz(30.5810, 38.4818, 7.6501)
Luminance0.3848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF26 #3326AF
analogous
#AF7726 #A2AF26 #5EAF26
triadic
#A2AF26 #26A2AF #AF26A2
tetradic
#A2AF26 #26AF77 #3326AF #AF265E
square
#A2AF26 #26AF77 #3326AF #AF265E
split-complementary
#A2AF26 #265EAF #7726AF
monochromatic
#454A10 #737D1B #A2AF26 #C7D53D #D5E070

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2AF26#FFFFFF#000000##000000
##A2AF261.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)
#BBA833
Tritanopia (blue-blind)
#ADA496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af26;
/* rgb */ color: rgb(162, 175, 38);
/* oklch */ color: oklch(72.0% 0.152 115.2);
Tailwind
colors: {
  custom: {
    50: '#c1c66d',
    500: '#a2af26',
    950: '#000000',
  },
}
SCSS
$custom: #a2af26;
$custom-light: #c1c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af26",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 65.693,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.72016,
    "c": 0.15193,
    "h": 115.2
  },
  "luminance": 0.38481
}

Semantic roles & 50–950 ramp

primary
#A2AF26
secondary
#736AC7
accent
#40E750
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A2AF26

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

Preview Lab → · Contrast checker → · Palette generator →

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