#8A7C26#8A7C26

#8A7C26 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.3% C 0.105 H 99.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A7C26
RGBrgb(138, 124, 38)
HSLhsl(52, 57%, 35%)
HSVhsv(52, 72%, 54%)
CMYKcmyk(0%, 10.1%, 72.5%, 45.9%)
CIE-LABlab(51.79, -4.86, 46.55)
CIE-LCHlch(51.79, 46.80, 95.96°)
OKLaboklab(58.28% -0.0179 0.1037)
OKLCHoklch(58.28% 0.105 99.8)
XYZxyz(18.0396, 19.9594, 4.7357)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C26 #26348A
analogous
#8A4A26 #8A7C26 #668A26
triadic
#8A7C26 #268A7C #7C268A
tetradic
#8A7C26 #268A4A #26348A #8A2666
square
#8A7C26 #268A4A #26348A #8A2666
split-complementary
#8A7C26 #26668A #4A268A
monochromatic
#2A260C #5A5119 #8A7C26 #BAA733 #D1C059

Accessibility & contrast

On white

4.21
#8A7C26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A7C26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7C26
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7C26#FFFFFF#000000##000000
##8A7C261.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887819
Deuteranopia (green-blind)
#8C7E2B
Tritanopia (blue-blind)
#95736B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7c26;
/* rgb */ color: rgb(138, 124, 38);
/* oklch */ color: oklch(58.3% 0.105 99.8);
Tailwind
colors: {
  custom: {
    50: '#afa166',
    500: '#8a7c26',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c26;
$custom-light: #afa166;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c26",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 38
  },
  "hsl": {
    "h": 51.6,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58276,
    "c": 0.10519,
    "h": 99.8
  },
  "luminance": 0.19959
}

Semantic roles & 50–950 ramp

primary
#8A7C26
secondary
#5663B6
accent
#5DE048
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7C26

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

Preview Lab → · Contrast checker → · Palette generator →

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