#A8AF2A#A8AF2A

#A8AF2A is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.5% C 0.148 H 112.6°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#A8AF2A
RGBrgb(168, 175, 42)
HSLhsl(63, 61%, 43%)
HSVhsv(63, 76%, 69%)
CMYKcmyk(4%, 0%, 76%, 31.4%)
CIE-LABlab(68.86, -18.32, 62.31)
CIE-LCHlch(68.86, 64.95, 106.38°)
OKLaboklab(72.53% -0.057 0.1367)
OKLCHoklch(72.53% 0.148 112.6)
XYZxyz(31.8974, 39.1527, 8.0670)
Luminance0.3915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8AF2A #312AAF
analogous
#AF742A #A8AF2A #65AF2A
triadic
#A8AF2A #2AA8AF #AF2AA8
tetradic
#A8AF2A #2AAF74 #312AAF #AF2A65
square
#A8AF2A #2AAF74 #312AAF #AF2A65
split-complementary
#A8AF2A #2A65AF #742AAF
monochromatic
#494C12 #797E1E #A8AF2A #CBD244 #D8DE75

Accessibility & contrast

On white

2.38
#A8AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#A8AF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8AF2A
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8AF2A#FFFFFF#000000##000000
##A8AF2A1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA707
Deuteranopia (green-blind)
#BDA935
Tritanopia (blue-blind)
#B4A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a8af2a;
/* rgb */ color: rgb(168, 175, 42);
/* oklch */ color: oklch(72.5% 0.148 112.6);
Tailwind
colors: {
  custom: {
    50: '#c5c66f',
    500: '#a8af2a',
    950: '#000000',
  },
}
SCSS
$custom: #a8af2a;
$custom-light: #c5c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a8af2a",
  "rgb": {
    "r": 168,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 63.158,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72529,
    "c": 0.14807,
    "h": 112.6
  },
  "luminance": 0.39152
}

Semantic roles & 50–950 ramp

primary
#A8AF2A
secondary
#746FC6
accent
#43E44C
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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