#A8AF28#A8AF28

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

Color values

HEX#A8AF28
RGBrgb(168, 175, 40)
HSLhsl(63, 63%, 42%)
HSVhsv(63, 77%, 69%)
CMYKcmyk(4%, 0%, 77.1%, 31.4%)
CIE-LABlab(68.85, -18.40, 62.94)
CIE-LCHlch(68.85, 65.57, 106.30°)
OKLaboklab(72.52% -0.0574 0.1376)
OKLCHoklch(72.52% 0.149 112.6)
XYZxyz(31.8625, 39.1387, 7.8832)
Luminance0.3914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8AF28 #2F28AF
analogous
#AF7328 #A8AF28 #65AF28
triadic
#A8AF28 #28A8AF #AF28A8
tetradic
#A8AF28 #28AF73 #2F28AF #AF2865
square
#A8AF28 #28AF73 #2F28AF #AF2865
split-complementary
#A8AF28 #2865AF #7328AF
monochromatic
#484B11 #787D1D #A8AF28 #CCD441 #D9DF73

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8AF28#FFFFFF#000000##000000
##A8AF281.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)
#BDA701
Deuteranopia (green-blind)
#BDA934
Tritanopia (blue-blind)
#B4A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a8af28;
/* rgb */ color: rgb(168, 175, 40);
/* oklch */ color: oklch(72.5% 0.149 112.6);
Tailwind
colors: {
  custom: {
    50: '#c6c66e',
    500: '#a8af28',
    950: '#000000',
  },
}
SCSS
$custom: #a8af28;
$custom-light: #c6c66e;
$custom-dark: #000000;
JSON
{
  "hex": "#a8af28",
  "rgb": {
    "r": 168,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 63.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72517,
    "c": 0.14912,
    "h": 112.6
  },
  "luminance": 0.39138
}

Semantic roles & 50–950 ramp

primary
#A8AF28
secondary
#716DC6
accent
#42E64A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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