#A8AF2F#A8AF2F

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

Color values

HEX#A8AF2F
RGBrgb(168, 175, 47)
HSLhsl(63, 58%, 44%)
HSVhsv(63, 73%, 69%)
CMYKcmyk(4%, 0%, 73.1%, 31.4%)
CIE-LABlab(68.89, -18.09, 60.66)
CIE-LCHlch(68.89, 63.30, 106.61°)
OKLaboklab(72.56% -0.0559 0.1341)
OKLCHoklch(72.56% 0.145 112.6)
XYZxyz(31.9925, 39.1907, 8.5680)
Luminance0.3919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8AF2F #362FAF
analogous
#AF762F #A8AF2F #68AF2F
triadic
#A8AF2F #2FA8AF #AF2FA8
tetradic
#A8AF2F #2FAF76 #362FAF #AF2F68
square
#A8AF2F #2FAF76 #362FAF #AF2F68
split-complementary
#A8AF2F #2F68AF #762FAF
monochromatic
#4B4F15 #7A7F22 #A8AF2F #C8CF4C #D7DC7C

Accessibility & contrast

On white

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

On black

8.84
#A8AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8AF2F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8AF2F#FFFFFF#000000##000000
##A8AF2F1.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8af2f;
/* rgb */ color: rgb(168, 175, 47);
/* oklch */ color: oklch(72.6% 0.145 112.6);
Tailwind
colors: {
  custom: {
    50: '#c5c671',
    500: '#a8af2f',
    950: '#000000',
  },
}
SCSS
$custom: #a8af2f;
$custom-light: #c5c671;
$custom-dark: #000000;
JSON
{
  "hex": "#a8af2f",
  "rgb": {
    "r": 168,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 63.281,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.7256,
    "c": 0.14525,
    "h": 112.6
  },
  "luminance": 0.3919
}

Semantic roles & 50–950 ramp

primary
#A8AF2F
secondary
#7A75C4
accent
#47E14F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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