#A7871E#A7871E

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

Color values

HEX#A7871E
RGBrgb(167, 135, 30)
HSLhsl(46, 70%, 39%)
HSVhsv(46, 82%, 65%)
CMYKcmyk(0%, 19.2%, 82%, 34.5%)
CIE-LABlab(57.69, 2.02, 56.07)
CIE-LCHlch(57.69, 56.11, 87.94°)
OKLaboklab(63.61% -0.0009 0.121)
OKLCHoklch(63.61% 0.121 90.4)
XYZxyz(24.8362, 25.6388, 4.8687)
Luminance0.2564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7871E #1E3EA7
analogous
#A7421E #A7871E #82A71E
triadic
#A7871E #1EA787 #871EA7
tetradic
#A7871E #1EA742 #1E3EA7 #A71E82
square
#A7871E #1EA742 #1E3EA7 #A71E82
split-complementary
#A7871E #1E82A7 #421EA7
monochromatic
#3F330B #735D15 #A7871E #D9B02A #E2C35D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7871E#FFFFFF#000000##000000
##A7871E1.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)
#978502
Deuteranopia (green-blind)
#9F8E25
Tritanopia (blue-blind)
#B57B74
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a7871e;
/* rgb */ color: rgb(167, 135, 30);
/* oklch */ color: oklch(63.6% 0.121 90.4);
Tailwind
colors: {
  custom: {
    50: '#c6a964',
    500: '#a7871e',
    950: '#000000',
  },
}
SCSS
$custom: #a7871e;
$custom-light: #c6a964;
$custom-dark: #000000;
JSON
{
  "hex": "#a7871e",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 45.985,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63608,
    "c": 0.12095,
    "h": 90.4
  },
  "luminance": 0.25637
}

Semantic roles & 50–950 ramp

primary
#A7871E
secondary
#5B74C6
accent
#65EC3B
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#140F06
muted
#827F7A

Preview Lab

Preview with #A7871E

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

Preview Lab → · Contrast checker → · Palette generator →

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