#A7A71F#A7A71F

#A7A71F is a light, vivid yellow. Relative luminance 0.360; OKLCH L 70.6% C 0.146 H 109.6°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#A7A71F
RGBrgb(167, 167, 31)
HSLhsl(60, 69%, 39%)
HSVhsv(60, 81%, 65%)
CMYKcmyk(0%, 0%, 81.4%, 34.5%)
CIE-LABlab(66.48, -15.09, 63.43)
CIE-LCHlch(66.48, 65.20, 103.38°)
OKLaboklab(70.59% -0.0488 0.1371)
OKLCHoklch(70.59% 0.146 109.6)
XYZxyz(30.0036, 35.9528, 6.6552)
Luminance0.3595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A71F #1F1FA7
analogous
#A7631F #A7A71F #63A71F
triadic
#A7A71F #1FA7A7 #A71FA7
tetradic
#A7A71F #1FA763 #1F1FA7 #A71F63
square
#A7A71F #1FA763 #1F1FA7 #A71F63
split-complementary
#A7A71F #1F63A7 #631FA7
monochromatic
#40400C #737315 #A7A71F #D8D82B #E1E15F

Accessibility & contrast

On white

2.56
#A7A71F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#A7A71F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A71F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A71F#FFFFFF#000000##000000
##A7A71F1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A000
Deuteranopia (green-blind)
#B7A42C
Tritanopia (blue-blind)
#B39C8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a7a71f;
/* rgb */ color: rgb(167, 167, 31);
/* oklch */ color: oklch(70.6% 0.146 109.6);
Tailwind
colors: {
  custom: {
    50: '#c5c069',
    500: '#a7a71f',
    950: '#000000',
  },
}
SCSS
$custom: #a7a71f;
$custom-light: #c5c069;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a71f",
  "rgb": {
    "r": 167,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.7059,
    "c": 0.14552,
    "h": 109.6
  },
  "luminance": 0.35952
}

Semantic roles & 50–950 ramp

primary
#A7A71F
secondary
#5C5CC6
accent
#3CEC3C
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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