#A7AF28#A7AF28

#A7AF28 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.149 H 113.1°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#A7AF28
RGBrgb(167, 175, 40)
HSLhsl(64, 63%, 42%)
HSVhsv(64, 77%, 69%)
CMYKcmyk(4.6%, 0%, 77.1%, 31.4%)
CIE-LABlab(68.77, -18.84, 62.84)
CIE-LCHlch(68.77, 65.60, 106.69°)
OKLaboklab(72.44% -0.0585 0.1375)
OKLCHoklch(72.44% 0.149 113.1)
XYZxyz(31.6503, 39.0294, 7.8732)
Luminance0.3903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AF28 #3028AF
analogous
#AF7428 #A7AF28 #63AF28
triadic
#A7AF28 #28A7AF #AF28A7
tetradic
#A7AF28 #28AF74 #3028AF #AF2863
square
#A7AF28 #28AF74 #3028AF #AF2863
split-complementary
#A7AF28 #2863AF #7428AF
monochromatic
#484B11 #777D1D #A7AF28 #CBD441 #D8DF73

Accessibility & contrast

On white

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

On black

8.81
#A7AF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7AF28
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7AF28#FFFFFF#000000##000000
##A7AF281.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA601
Deuteranopia (green-blind)
#BDA934
Tritanopia (blue-blind)
#B3A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a7af28;
/* rgb */ color: rgb(167, 175, 40);
/* oklch */ color: oklch(72.4% 0.149 113.1);
Tailwind
colors: {
  custom: {
    50: '#c5c66e',
    500: '#a7af28',
    950: '#000000',
  },
}
SCSS
$custom: #a7af28;
$custom-light: #c5c66e;
$custom-dark: #000000;
JSON
{
  "hex": "#a7af28",
  "rgb": {
    "r": 167,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 63.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72435,
    "c": 0.1494,
    "h": 113.1
  },
  "luminance": 0.39029
}

Semantic roles & 50–950 ramp

primary
#A7AF28
secondary
#726DC6
accent
#42E64C
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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