#A8AF2D#A8AF2D

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

Color values

HEX#A8AF2D
RGBrgb(168, 175, 45)
HSLhsl(63, 59%, 43%)
HSVhsv(63, 74%, 69%)
CMYKcmyk(4%, 0%, 74.3%, 31.4%)
CIE-LABlab(68.88, -18.19, 61.33)
CIE-LCHlch(68.88, 63.97, 106.52°)
OKLaboklab(72.55% -0.0564 0.1351)
OKLCHoklch(72.55% 0.146 112.6)
XYZxyz(31.9531, 39.1750, 8.3604)
Luminance0.3917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8AF2D #342DAF
analogous
#AF752D #A8AF2D #67AF2D
triadic
#A8AF2D #2DA8AF #AF2DA8
tetradic
#A8AF2D #2DAF75 #342DAF #AF2D67
square
#A8AF2D #2DAF75 #342DAF #AF2D67
split-complementary
#A8AF2D #2D67AF #752DAF
monochromatic
#4B4E14 #797E20 #A8AF2D #C9D049 #D7DD7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8AF2D#FFFFFF#000000##000000
##A8AF2D1.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)
#BCA711
Deuteranopia (green-blind)
#BDA938
Tritanopia (blue-blind)
#B4A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a8af2d;
/* rgb */ color: rgb(168, 175, 45);
/* oklch */ color: oklch(72.5% 0.146 112.6);
Tailwind
colors: {
  custom: {
    50: '#c5c670',
    500: '#a8af2d',
    950: '#000000',
  },
}
SCSS
$custom: #a8af2d;
$custom-light: #c5c670;
$custom-dark: #000000;
JSON
{
  "hex": "#a8af2d",
  "rgb": {
    "r": 168,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 63.231,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.72547,
    "c": 0.14642,
    "h": 112.6
  },
  "luminance": 0.39174
}

Semantic roles & 50–950 ramp

primary
#A8AF2D
secondary
#7773C5
accent
#46E24E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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