#A7851F#A7851F

#A7851F is a light, moderate yellow. Relative luminance 0.251; OKLCH L 63.2% C 0.119 H 88.8°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#A7851F
RGBrgb(167, 133, 31)
HSLhsl(45, 69%, 39%)
HSVhsv(45, 81%, 65%)
CMYKcmyk(0%, 20.4%, 81.4%, 34.5%)
CIE-LABlab(57.16, 3.16, 55.27)
CIE-LCHlch(57.16, 55.36, 86.73°)
OKLaboklab(63.19% 0.0025 0.1195)
OKLCHoklch(63.19% 0.119 88.8)
XYZxyz(24.5727, 25.0911, 4.8449)
Luminance0.2509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7851F #1F41A7
analogous
#A7411F #A7851F #85A71F
triadic
#A7851F #1FA785 #851FA7
tetradic
#A7851F #1FA741 #1F41A7 #A71F85
square
#A7851F #1FA741 #1F41A7 #A71F85
split-complementary
#A7851F #1F85A7 #411FA7
monochromatic
#40330C #735C15 #A7851F #D8AD2B #E1C15F

Accessibility & contrast

On white

3.49
#A7851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#A7851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A7851F
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7851F#FFFFFF#000000##000000
##A7851F1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968405
Deuteranopia (green-blind)
#9E8D25
Tritanopia (blue-blind)
#B57972
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a7851f;
/* rgb */ color: rgb(167, 133, 31);
/* oklch */ color: oklch(63.2% 0.119 88.8);
Tailwind
colors: {
  custom: {
    50: '#c6a864',
    500: '#a7851f',
    950: '#000000',
  },
}
SCSS
$custom: #a7851f;
$custom-light: #c6a864;
$custom-dark: #000000;
JSON
{
  "hex": "#a7851f",
  "rgb": {
    "r": 167,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 45,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63193,
    "c": 0.11948,
    "h": 88.8
  },
  "luminance": 0.25089
}

Semantic roles & 50–950 ramp

primary
#A7851F
secondary
#5C76C6
accent
#68EC3C
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#140F06
muted
#827F7A

Preview Lab

Preview with #A7851F

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

Preview Lab → · Contrast checker → · Palette generator →

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