#8A7826#8A7826

#8A7826 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.4% C 0.102 H 96.5°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A7826
RGBrgb(138, 120, 38)
HSLhsl(49, 57%, 35%)
HSVhsv(49, 72%, 54%)
CMYKcmyk(0%, 13%, 72.5%, 45.9%)
CIE-LABlab(50.66, -2.62, 45.42)
CIE-LCHlch(50.66, 45.49, 93.30°)
OKLaboklab(57.38% -0.0116 0.1013)
OKLCHoklch(57.38% 0.102 96.5)
XYZxyz(17.5484, 18.9771, 4.5720)
Luminance0.1898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7826 #26388A
analogous
#8A4626 #8A7826 #6A8A26
triadic
#8A7826 #268A78 #78268A
tetradic
#8A7826 #268A46 #26388A #8A266A
square
#8A7826 #268A46 #26388A #8A266A
split-complementary
#8A7826 #266A8A #46268A
monochromatic
#2A250C #5A4E19 #8A7826 #BAA233 #D1BC59

Accessibility & contrast

On white

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

On black

4.80
#8A7826 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7826
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7826#FFFFFF#000000##000000
##8A78261.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#84751A
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#956F67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a7826;
/* rgb */ color: rgb(138, 120, 38);
/* oklch */ color: oklch(57.4% 0.102 96.5);
Tailwind
colors: {
  custom: {
    50: '#af9e66',
    500: '#8a7826',
    950: '#000000',
  },
}
SCSS
$custom: #8a7826;
$custom-light: #af9e66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7826",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 38
  },
  "hsl": {
    "h": 49.2,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.5738,
    "c": 0.10192,
    "h": 96.5
  },
  "luminance": 0.18976
}

Semantic roles & 50–950 ramp

primary
#8A7826
secondary
#5667B6
accent
#63E048
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7826

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

Preview Lab → · Contrast checker → · Palette generator →

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