#8A7E28#8A7E28

#8A7E28 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.7% C 0.105 H 101.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A7E28
RGBrgb(138, 126, 40)
HSLhsl(53, 55%, 35%)
HSVhsv(53, 71%, 54%)
CMYKcmyk(0%, 8.7%, 71%, 45.9%)
CIE-LABlab(52.37, -5.86, 46.29)
CIE-LCHlch(52.37, 46.66, 97.22°)
OKLaboklab(58.74% -0.0205 0.1035)
OKLCHoklch(58.74% 0.106 101.2)
XYZxyz(18.3259, 20.4790, 4.9946)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E28 #28348A
analogous
#8A4D28 #8A7E28 #658A28
triadic
#8A7E28 #288A7E #7E288A
tetradic
#8A7E28 #288A4D #28348A #8A2865
square
#8A7E28 #288A4D #28348A #8A2865
split-complementary
#8A7E28 #28658A #4D288A
monochromatic
#2B270C #5B531A #8A7E28 #B9A936 #D0C25D

Accessibility & contrast

On white

4.12
#8A7E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A7E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E28
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E28#FFFFFF#000000##000000
##8A7E281.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1C
Deuteranopia (green-blind)
#8D7F2D
Tritanopia (blue-blind)
#95756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e28;
/* rgb */ color: rgb(138, 126, 40);
/* oklch */ color: oklch(58.7% 0.105 101.2);
Tailwind
colors: {
  custom: {
    50: '#afa367',
    500: '#8a7e28',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e28;
$custom-light: #afa367;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e28",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 52.653,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58744,
    "c": 0.1055,
    "h": 101.2
  },
  "luminance": 0.20478
}

Semantic roles & 50–950 ramp

primary
#8A7E28
secondary
#5964B5
accent
#5CDE49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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