#8A7828#8A7828

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

Color values

HEX#8A7828
RGBrgb(138, 120, 40)
HSLhsl(49, 55%, 35%)
HSVhsv(49, 71%, 54%)
CMYKcmyk(0%, 13%, 71%, 45.9%)
CIE-LABlab(50.68, -2.51, 44.57)
CIE-LCHlch(50.68, 44.64, 93.22°)
OKLaboklab(57.4% -0.011 0.0998)
OKLCHoklch(57.4% 0.1 96.3)
XYZxyz(17.5816, 18.9903, 4.7465)
Luminance0.1899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7828 #283A8A
analogous
#8A4728 #8A7828 #6B8A28
triadic
#8A7828 #288A78 #78288A
tetradic
#8A7828 #288A47 #283A8A #8A286B
square
#8A7828 #288A47 #283A8A #8A286B
split-complementary
#8A7828 #286B8A #47288A
monochromatic
#2B250C #5B4F1A #8A7828 #B9A136 #D0BB5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7828#FFFFFF#000000##000000
##8A78281.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)
#84751D
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#956F68
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a7828;
/* rgb */ color: rgb(138, 120, 40);
/* oklch */ color: oklch(57.4% 0.100 96.3);
Tailwind
colors: {
  custom: {
    50: '#af9e67',
    500: '#8a7828',
    950: '#000000',
  },
}
SCSS
$custom: #8a7828;
$custom-light: #af9e67;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7828",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 48.98,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57397,
    "c": 0.10044,
    "h": 96.3
  },
  "luminance": 0.18989
}

Semantic roles & 50–950 ramp

primary
#8A7828
secondary
#596AB5
accent
#65DE49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7828

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

Preview Lab → · Contrast checker → · Palette generator →

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