#A4AF28#A4AF28

#A4AF28 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.2% C 0.150 H 114.3°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#A4AF28
RGBrgb(164, 175, 40)
HSLhsl(65, 63%, 42%)
HSVhsv(65, 77%, 69%)
CMYKcmyk(6.3%, 0%, 77.1%, 31.4%)
CIE-LABlab(68.54, -20.13, 62.54)
CIE-LCHlch(68.54, 65.70, 107.84°)
OKLaboklab(72.19% -0.062 0.1369)
OKLCHoklch(72.19% 0.15 114.3)
XYZxyz(31.0238, 38.7063, 7.8438)
Luminance0.3871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A4AF28 #3328AF
analogous
#AF7728 #A4AF28 #61AF28
triadic
#A4AF28 #28A4AF #AF28A4
tetradic
#A4AF28 #28AF77 #3328AF #AF2861
square
#A4AF28 #28AF77 #3328AF #AF2861
split-complementary
#A4AF28 #2861AF #7728AF
monochromatic
#474B11 #757D1D #A4AF28 #C8D441 #D6DF73

Accessibility & contrast

On white

2.40
#A4AF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#A4AF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A4AF28
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A4AF28#FFFFFF#000000##000000
##A4AF281.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a4af28;
/* rgb */ color: rgb(164, 175, 40);
/* oklch */ color: oklch(72.2% 0.150 114.3);
Tailwind
colors: {
  custom: {
    50: '#c3c66e',
    500: '#a4af28',
    950: '#000000',
  },
}
SCSS
$custom: #a4af28;
$custom-light: #c3c66e;
$custom-dark: #000000;
JSON
{
  "hex": "#a4af28",
  "rgb": {
    "r": 164,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 64.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72189,
    "c": 0.15029,
    "h": 114.3
  },
  "luminance": 0.38706
}

Semantic roles & 50–950 ramp

primary
#A4AF28
secondary
#746DC6
accent
#42E64F
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A4AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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