#A7AF22#A7AF22

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

Color values

HEX#A7AF22
RGBrgb(167, 175, 34)
HSLhsl(63, 67%, 41%)
HSVhsv(63, 81%, 69%)
CMYKcmyk(4.6%, 0%, 80.6%, 31.4%)
CIE-LABlab(68.75, -19.06, 64.58)
CIE-LCHlch(68.75, 67.33, 106.44°)
OKLaboklab(72.4% -0.0596 0.1401)
OKLCHoklch(72.4% 0.152 113.1)
XYZxyz(31.5561, 38.9917, 7.3769)
Luminance0.3899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AF22 #2A22AF
analogous
#AF7022 #A7AF22 #60AF22
triadic
#A7AF22 #22A7AF #AF22A7
tetradic
#A7AF22 #22AF70 #2A22AF #AF2260
square
#A7AF22 #22AF70 #2A22AF #AF2260
split-complementary
#A7AF22 #2260AF #7022AF
monochromatic
#45490E #767C18 #A7AF22 #CFD836 #DBE269

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7AF22#FFFFFF#000000##000000
##A7AF221.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)
#BDA930
Tritanopia (blue-blind)
#B3A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a7af22;
/* rgb */ color: rgb(167, 175, 34);
/* oklch */ color: oklch(72.4% 0.152 113.1);
Tailwind
colors: {
  custom: {
    50: '#c5c66b',
    500: '#a7af22',
    950: '#000000',
  },
}
SCSS
$custom: #a7af22;
$custom-light: #c5c66b;
$custom-dark: #000000;
JSON
{
  "hex": "#a7af22",
  "rgb": {
    "r": 167,
    "g": 175,
    "b": 34
  },
  "hsl": {
    "h": 63.404,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72404,
    "c": 0.15225,
    "h": 113.1
  },
  "luminance": 0.38991
}

Semantic roles & 50–950 ramp

primary
#A7AF22
secondary
#6B65C8
accent
#3DEA47
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7AF22

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

Preview Lab → · Contrast checker → · Palette generator →

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