#A7871D#A7871D

#A7871D is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.6% C 0.121 H 90.5°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#A7871D
RGBrgb(167, 135, 29)
HSLhsl(46, 70%, 38%)
HSVhsv(46, 83%, 65%)
CMYKcmyk(0%, 19.2%, 82.6%, 34.5%)
CIE-LABlab(57.69, 1.98, 56.38)
CIE-LCHlch(57.69, 56.42, 87.98°)
OKLaboklab(63.6% -0.001 0.1214)
OKLCHoklch(63.6% 0.121 90.5)
XYZxyz(24.8236, 25.6338, 4.8025)
Luminance0.2563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7871D #1D3DA7
analogous
#A7421D #A7871D #82A71D
triadic
#A7871D #1DA787 #871DA7
tetradic
#A7871D #1DA742 #1D3DA7 #A71D82
square
#A7871D #1DA742 #1D3DA7 #A71D82
split-complementary
#A7871D #1D82A7 #421DA7
monochromatic
#3F330B #735D14 #A7871D #DAB028 #E3C35C

Accessibility & contrast

On white

3.43
#A7871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#A7871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A7871D
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7871D#FFFFFF#000000##000000
##A7871D1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#9F8E24
Tritanopia (blue-blind)
#B57B74
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a7871d;
/* rgb */ color: rgb(167, 135, 29);
/* oklch */ color: oklch(63.6% 0.121 90.5);
Tailwind
colors: {
  custom: {
    50: '#c6a964',
    500: '#a7871d',
    950: '#000000',
  },
}
SCSS
$custom: #a7871d;
$custom-light: #c6a964;
$custom-dark: #000000;
JSON
{
  "hex": "#a7871d",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 46.087,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63602,
    "c": 0.12141,
    "h": 90.5
  },
  "luminance": 0.25632
}

Semantic roles & 50–950 ramp

primary
#A7871D
secondary
#5973C7
accent
#64ED3B
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#140F06
muted
#827F7A

Preview Lab

Preview with #A7871D

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

Preview Lab → · Contrast checker → · Palette generator →

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