#8A7A28#8A7A28

#8A7A28 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.8% C 0.102 H 98.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A7A28
RGBrgb(138, 122, 40)
HSLhsl(50, 55%, 35%)
HSVhsv(50, 71%, 54%)
CMYKcmyk(0%, 11.6%, 71%, 45.9%)
CIE-LABlab(51.24, -3.63, 45.14)
CIE-LCHlch(51.24, 45.29, 94.60°)
OKLaboklab(57.84% -0.0142 0.1011)
OKLCHoklch(57.84% 0.102 98)
XYZxyz(17.8246, 19.4764, 4.8275)
Luminance0.1948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A28 #28388A
analogous
#8A4928 #8A7A28 #698A28
triadic
#8A7A28 #288A7A #7A288A
tetradic
#8A7A28 #288A49 #28388A #8A2869
square
#8A7A28 #288A49 #28388A #8A2869
split-complementary
#8A7A28 #28698A #49288A
monochromatic
#2B260C #5B501A #8A7A28 #B9A436 #D0BD5D

Accessibility & contrast

On white

4.29
#8A7A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8A7A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A28
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A28#FFFFFF#000000##000000
##8A7A281.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#86771D
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#957169
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a28;
/* rgb */ color: rgb(138, 122, 40);
/* oklch */ color: oklch(57.8% 0.102 98.0);
Tailwind
colors: {
  custom: {
    50: '#afa067',
    500: '#8a7a28',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a28;
$custom-light: #afa067;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a28",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 50.204,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57844,
    "c": 0.10205,
    "h": 98
  },
  "luminance": 0.19476
}

Semantic roles & 50–950 ramp

primary
#8A7A28
secondary
#5968B5
accent
#62DE49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7A28

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

Preview Lab → · Contrast checker → · Palette generator →

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