#8A7E26#8A7E26

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

Color values

HEX#8A7E26
RGBrgb(138, 126, 38)
HSLhsl(53, 57%, 35%)
HSVhsv(53, 72%, 54%)
CMYKcmyk(0%, 8.7%, 72.5%, 45.9%)
CIE-LABlab(52.36, -5.97, 47.11)
CIE-LCHlch(52.36, 47.49, 97.23°)
OKLaboklab(58.73% -0.0211 0.1048)
OKLCHoklch(58.73% 0.107 101.4)
XYZxyz(18.2928, 20.4657, 4.8201)
Luminance0.2046 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E26 #26328A
analogous
#8A4C26 #8A7E26 #648A26
triadic
#8A7E26 #268A7E #7E268A
tetradic
#8A7E26 #268A4C #26328A #8A2664
square
#8A7E26 #268A4C #26328A #8A2664
split-complementary
#8A7E26 #26648A #4C268A
monochromatic
#2A260C #5A5219 #8A7E26 #BAAA33 #D1C359

Accessibility & contrast

On white

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

On black

5.09
#8A7E26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E26
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E26#FFFFFF#000000##000000
##8A7E261.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A18
Deuteranopia (green-blind)
#8E7F2C
Tritanopia (blue-blind)
#95756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e26;
/* rgb */ color: rgb(138, 126, 38);
/* oklch */ color: oklch(58.7% 0.107 101.4);
Tailwind
colors: {
  custom: {
    50: '#afa366',
    500: '#8a7e26',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e26;
$custom-light: #afa366;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e26",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 38
  },
  "hsl": {
    "h": 52.8,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58727,
    "c": 0.10694,
    "h": 101.4
  },
  "luminance": 0.20465
}

Semantic roles & 50–950 ramp

primary
#8A7E26
secondary
#5661B6
accent
#5AE048
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E26

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

Preview Lab → · Contrast checker → · Palette generator →

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