#8A7228#8A7228

#8A7228 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 56.1% C 0.096 H 90.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A7228
RGBrgb(138, 114, 40)
HSLhsl(45, 55%, 35%)
HSVhsv(45, 71%, 54%)
CMYKcmyk(0%, 17.4%, 71%, 45.9%)
CIE-LABlab(49.00, 0.90, 42.85)
CIE-LCHlch(49.00, 42.86, 88.80°)
OKLaboklab(56.07% -0.0012 0.0962)
OKLCHoklch(56.07% 0.096 90.7)
XYZxyz(16.8824, 17.5921, 4.5135)
Luminance0.1759 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7228 #28408A
analogous
#8A4128 #8A7228 #718A28
triadic
#8A7228 #288A72 #72288A
tetradic
#8A7228 #288A41 #28408A #8A2871
square
#8A7228 #288A41 #28408A #8A2871
split-complementary
#8A7228 #28718A #41288A
monochromatic
#2B240C #5B4B1A #8A7228 #B99936 #D0B45D

Accessibility & contrast

On white

4.65
#8A7228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8A7228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A7228
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7228#FFFFFF#000000##FFFFFF
##8A72281.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F701E
Deuteranopia (green-blind)
#85772C
Tritanopia (blue-blind)
#956863
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a7228;
/* rgb */ color: rgb(138, 114, 40);
/* oklch */ color: oklch(56.1% 0.096 90.7);
Tailwind
colors: {
  custom: {
    50: '#af9a66',
    500: '#8a7228',
    950: '#000000',
  },
}
SCSS
$custom: #8a7228;
$custom-light: #af9a66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7228",
  "rgb": {
    "r": 138,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 45.306,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.56071,
    "c": 0.09621,
    "h": 90.7
  },
  "luminance": 0.17591
}

Semantic roles & 50–950 ramp

primary
#8A7228
secondary
#596FB5
accent
#6EDE49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7228

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

Preview Lab → · Contrast checker → · Palette generator →

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