#A7971F#A7971F

#A7971F is a light, vivid yellow. Relative luminance 0.304; OKLCH L 67.0% C 0.131 H 101.1°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#A7971F
RGBrgb(167, 151, 31)
HSLhsl(53, 69%, 39%)
HSVhsv(53, 81%, 65%)
CMYKcmyk(0%, 9.6%, 81.4%, 34.5%)
CIE-LABlab(62.04, -6.68, 59.57)
CIE-LCHlch(62.04, 59.94, 96.39°)
OKLaboklab(67.05% -0.0254 0.1287)
OKLCHoklch(67.05% 0.131 101.1)
XYZxyz(27.2516, 30.4489, 5.7379)
Luminance0.3045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7971F #1F2FA7
analogous
#A7531F #A7971F #73A71F
triadic
#A7971F #1FA797 #971FA7
tetradic
#A7971F #1FA753 #1F2FA7 #A71F73
square
#A7971F #1FA753 #1F2FA7 #A71F73
split-complementary
#A7971F #1F73A7 #531FA7
monochromatic
#403A0C #736815 #A7971F #D8C32B #E1D25F

Accessibility & contrast

On white

2.96
#A7971F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#A7971F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7971F
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7971F#FFFFFF#000000##000000
##A7971F1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#AB9929
Tritanopia (blue-blind)
#B48B81
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #a7971f;
/* rgb */ color: rgb(167, 151, 31);
/* oklch */ color: oklch(67.0% 0.131 101.1);
Tailwind
colors: {
  custom: {
    50: '#c5b567',
    500: '#a7971f',
    950: '#000000',
  },
}
SCSS
$custom: #a7971f;
$custom-light: #c5b567;
$custom-dark: #000000;
JSON
{
  "hex": "#a7971f",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 52.941,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.67049,
    "c": 0.13121,
    "h": 101.1
  },
  "luminance": 0.30448
}

Semantic roles & 50–950 ramp

primary
#A7971F
secondary
#5C68C6
accent
#51EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #A7971F

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

Preview Lab → · Contrast checker → · Palette generator →

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