#8A7B26#8A7B26

#8A7B26 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.1% C 0.104 H 99.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7B26
RGBrgb(138, 123, 38)
HSLhsl(51, 57%, 35%)
HSVhsv(51, 72%, 54%)
CMYKcmyk(0%, 10.9%, 72.5%, 45.9%)
CIE-LABlab(51.51, -4.30, 46.26)
CIE-LCHlch(51.51, 46.46, 95.31°)
OKLaboklab(58.05% -0.0163 0.1031)
OKLCHoklch(58.05% 0.104 99)
XYZxyz(17.9149, 19.7100, 4.6941)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B26 #26358A
analogous
#8A4926 #8A7B26 #678A26
triadic
#8A7B26 #268A7B #7B268A
tetradic
#8A7B26 #268A49 #26358A #8A2667
square
#8A7B26 #268A49 #26358A #8A2667
split-complementary
#8A7B26 #26678A #49268A
monochromatic
#2A250C #5A5019 #8A7B26 #BAA633 #D1BF59

Accessibility & contrast

On white

4.25
#8A7B26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A7B26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B26
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B26#FFFFFF#000000##000000
##8A7B261.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877819
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b26;
/* rgb */ color: rgb(138, 123, 38);
/* oklch */ color: oklch(58.1% 0.104 99.0);
Tailwind
colors: {
  custom: {
    50: '#afa066',
    500: '#8a7b26',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b26;
$custom-light: #afa066;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b26",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 38
  },
  "hsl": {
    "h": 51,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58051,
    "c": 0.10434,
    "h": 99
  },
  "luminance": 0.19709
}

Semantic roles & 50–950 ramp

primary
#8A7B26
secondary
#5664B6
accent
#5FE048
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7B26

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

Preview Lab → · Contrast checker → · Palette generator →

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