#A7AF27#A7AF27

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

Color values

HEX#A7AF27
RGBrgb(167, 175, 39)
HSLhsl(64, 64%, 42%)
HSVhsv(64, 78%, 69%)
CMYKcmyk(4.6%, 0%, 77.7%, 31.4%)
CIE-LABlab(68.77, -18.87, 63.14)
CIE-LCHlch(68.77, 65.90, 106.64°)
OKLaboklab(72.43% -0.0587 0.1379)
OKLCHoklch(72.43% 0.15 113.1)
XYZxyz(31.6336, 39.0226, 7.7848)
Luminance0.3902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AF27 #2F27AF
analogous
#AF7327 #A7AF27 #63AF27
triadic
#A7AF27 #27A7AF #AF27A7
tetradic
#A7AF27 #27AF73 #2F27AF #AF2763
square
#A7AF27 #27AF73 #2F27AF #AF2763
split-complementary
#A7AF27 #2763AF #7327AF
monochromatic
#474B11 #777D1C #A7AF27 #CBD43F #D9DF71

Accessibility & contrast

On white

2.39
#A7AF27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#A7AF27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7AF27
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7AF27#FFFFFF#000000##000000
##A7AF271.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7af27;
/* rgb */ color: rgb(167, 175, 39);
/* oklch */ color: oklch(72.4% 0.150 113.1);
Tailwind
colors: {
  custom: {
    50: '#c5c66d',
    500: '#a7af27',
    950: '#000000',
  },
}
SCSS
$custom: #a7af27;
$custom-light: #c5c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#a7af27",
  "rgb": {
    "r": 167,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 63.529,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.72429,
    "c": 0.1499,
    "h": 113.1
  },
  "luminance": 0.39022
}

Semantic roles & 50–950 ramp

primary
#A7AF27
secondary
#716BC6
accent
#41E74B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A7AF27

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

Preview Lab → · Contrast checker → · Palette generator →

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