#A8AF1F#A8AF1F

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

Color values

HEX#A8AF1F
RGBrgb(168, 175, 31)
HSLhsl(63, 70%, 40%)
HSVhsv(63, 82%, 69%)
CMYKcmyk(4%, 0%, 82.3%, 31.4%)
CIE-LABlab(68.81, -18.73, 65.47)
CIE-LCHlch(68.81, 68.10, 105.96°)
OKLaboklab(72.47% -0.059 0.1414)
OKLCHoklch(72.47% 0.153 112.6)
XYZxyz(31.7268, 39.0845, 7.1688)
Luminance0.3908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8AF1F #261FAF
analogous
#AF6E1F #A8AF1F #60AF1F
triadic
#A8AF1F #1FA8AF #AF1FA8
tetradic
#A8AF1F #1FAF6E #261FAF #AF1F60
square
#A8AF1F #1FAF6E #261FAF #AF1F60
split-complementary
#A8AF1F #1F60AF #6E1FAF
monochromatic
#44470D #767B16 #A8AF1F #D2DA31 #DEE465

Accessibility & contrast

On white

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

On black

8.82
#A8AF1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8AF1F
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8AF1F#FFFFFF#000000##000000
##A8AF1F1.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BDA92E
Tritanopia (blue-blind)
#B4A495
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a8af1f;
/* rgb */ color: rgb(168, 175, 31);
/* oklch */ color: oklch(72.5% 0.153 112.6);
Tailwind
colors: {
  custom: {
    50: '#c6c66a',
    500: '#a8af1f',
    950: '#000000',
  },
}
SCSS
$custom: #a8af1f;
$custom-light: #c6c66a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8af1f",
  "rgb": {
    "r": 168,
    "g": 175,
    "b": 31
  },
  "hsl": {
    "h": 62.917,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.72474,
    "c": 0.15324,
    "h": 112.6
  },
  "luminance": 0.39084
}

Semantic roles & 50–950 ramp

primary
#A8AF1F
secondary
#6661C9
accent
#3BED44
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A8AF1F

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

Preview Lab → · Contrast checker → · Palette generator →

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