#8A7822#8A7822

#8A7822 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.3% C 0.105 H 96.9°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A7822
RGBrgb(138, 120, 34)
HSLhsl(50, 60%, 34%)
HSVhsv(50, 75%, 54%)
CMYKcmyk(0%, 13%, 75.4%, 45.9%)
CIE-LABlab(50.63, -2.83, 47.04)
CIE-LCHlch(50.63, 47.12, 93.44°)
OKLaboklab(57.35% -0.0126 0.1039)
OKLCHoklch(57.35% 0.105 96.9)
XYZxyz(17.4873, 18.9526, 4.2502)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7822 #22348A
analogous
#8A4422 #8A7822 #688A22
triadic
#8A7822 #228A78 #78228A
tetradic
#8A7822 #228A44 #22348A #8A2268
square
#8A7822 #228A44 #22348A #8A2268
split-complementary
#8A7822 #22688A #44228A
monochromatic
#28230A #594D16 #8A7822 #BBA32E #D4BE52

Accessibility & contrast

On white

4.38
#8A7822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8A7822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7822
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7822#FFFFFF#000000##000000
##8A78221.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#857514
Deuteranopia (green-blind)
#897B27
Tritanopia (blue-blind)
#956E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a7822;
/* rgb */ color: rgb(138, 120, 34);
/* oklch */ color: oklch(57.3% 0.105 96.9);
Tailwind
colors: {
  custom: {
    50: '#b09e63',
    500: '#8a7822',
    950: '#000000',
  },
}
SCSS
$custom: #8a7822;
$custom-light: #b09e63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7822",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 49.615,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57348,
    "c": 0.10466,
    "h": 96.9
  },
  "luminance": 0.18952
}

Semantic roles & 50–950 ramp

primary
#8A7822
secondary
#5062B8
accent
#60E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7822

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

Preview Lab → · Contrast checker → · Palette generator →

#8A7822 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva