#A1AF28#A1AF28

#A1AF28 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 71.9% C 0.151 H 115.6°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#A1AF28
RGBrgb(161, 175, 40)
HSLhsl(66, 63%, 42%)
HSVhsv(66, 77%, 69%)
CMYKcmyk(8%, 0%, 77.1%, 31.4%)
CIE-LABlab(68.31, -21.41, 62.24)
CIE-LCHlch(68.31, 65.82, 108.98°)
OKLaboklab(71.95% -0.0654 0.1364)
OKLCHoklch(71.95% 0.151 115.6)
XYZxyz(30.4118, 38.3907, 7.8152)
Luminance0.3839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1AF28 #3628AF
analogous
#AF7928 #A1AF28 #5EAF28
triadic
#A1AF28 #28A1AF #AF28A1
tetradic
#A1AF28 #28AF79 #3628AF #AF285E
square
#A1AF28 #28AF79 #3628AF #AF285E
split-complementary
#A1AF28 #285EAF #7928AF
monochromatic
#454B11 #737D1D #A1AF28 #C4D441 #D4DF73

Accessibility & contrast

On white

2.42
#A1AF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#A1AF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1AF28
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1AF28#FFFFFF#000000##000000
##A1AF281.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA601
Deuteranopia (green-blind)
#BBA834
Tritanopia (blue-blind)
#ACA596
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a1af28;
/* rgb */ color: rgb(161, 175, 40);
/* oklch */ color: oklch(71.9% 0.151 115.6);
Tailwind
colors: {
  custom: {
    50: '#c0c66e',
    500: '#a1af28',
    950: '#000000',
  },
}
SCSS
$custom: #a1af28;
$custom-light: #c0c66e;
$custom-dark: #000000;
JSON
{
  "hex": "#a1af28",
  "rgb": {
    "r": 161,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 66.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.71946,
    "c": 0.15125,
    "h": 115.6
  },
  "luminance": 0.3839
}

Semantic roles & 50–950 ramp

primary
#A1AF28
secondary
#766DC6
accent
#42E653
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A1AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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