#A7871F#A7871F

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

Color values

HEX#A7871F
RGBrgb(167, 135, 31)
HSLhsl(46, 69%, 39%)
HSVhsv(46, 81%, 65%)
CMYKcmyk(0%, 19.2%, 81.4%, 34.5%)
CIE-LABlab(57.70, 2.05, 55.75)
CIE-LCHlch(57.70, 55.78, 87.89°)
OKLaboklab(63.61% -0.0007 0.1205)
OKLCHoklch(63.61% 0.12 90.3)
XYZxyz(24.8492, 25.6440, 4.9370)
Luminance0.2564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7871F #1F3FA7
analogous
#A7431F #A7871F #83A71F
triadic
#A7871F #1FA787 #871FA7
tetradic
#A7871F #1FA743 #1F3FA7 #A71F83
square
#A7871F #1FA743 #1F3FA7 #A71F83
split-complementary
#A7871F #1F83A7 #431FA7
monochromatic
#40340C #735D15 #A7871F #D8AF2B #E1C35F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7871F#FFFFFF#000000##000000
##A7871F1.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)
#978504
Deuteranopia (green-blind)
#9F8E26
Tritanopia (blue-blind)
#B57B74
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a7871f;
/* rgb */ color: rgb(167, 135, 31);
/* oklch */ color: oklch(63.6% 0.120 90.3);
Tailwind
colors: {
  custom: {
    50: '#c6a965',
    500: '#a7871f',
    950: '#000000',
  },
}
SCSS
$custom: #a7871f;
$custom-light: #c6a965;
$custom-dark: #000000;
JSON
{
  "hex": "#a7871f",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 45.882,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63613,
    "c": 0.12047,
    "h": 90.3
  },
  "luminance": 0.25642
}

Semantic roles & 50–950 ramp

primary
#A7871F
secondary
#5C75C6
accent
#66EC3C
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#140F06
muted
#827F7A

Preview Lab

Preview with #A7871F

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

Preview Lab → · Contrast checker → · Palette generator →

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