#8A7D26#8A7D26

#8A7D26 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.106 H 100.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A7D26
RGBrgb(138, 125, 38)
HSLhsl(52, 57%, 35%)
HSVhsv(52, 72%, 54%)
CMYKcmyk(0%, 9.4%, 72.5%, 45.9%)
CIE-LABlab(52.08, -5.42, 46.83)
CIE-LCHlch(52.08, 47.14, 96.60°)
OKLaboklab(58.5% -0.0195 0.1042)
OKLCHoklch(58.5% 0.106 100.6)
XYZxyz(18.1655, 20.2113, 4.7777)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D26 #26338A
analogous
#8A4B26 #8A7D26 #658A26
triadic
#8A7D26 #268A7D #7D268A
tetradic
#8A7D26 #268A4B #26338A #8A2665
square
#8A7D26 #268A4B #26338A #8A2665
split-complementary
#8A7D26 #26658A #4B268A
monochromatic
#2A260C #5A5219 #8A7D26 #BAA833 #D1C259

Accessibility & contrast

On white

4.17
#8A7D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8A7D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D26
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D26#FFFFFF#000000##000000
##8A7D261.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897919
Deuteranopia (green-blind)
#8D7E2B
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d26;
/* rgb */ color: rgb(138, 125, 38);
/* oklch */ color: oklch(58.5% 0.106 100.6);
Tailwind
colors: {
  custom: {
    50: '#afa266',
    500: '#8a7d26',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d26;
$custom-light: #afa266;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d26",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 38
  },
  "hsl": {
    "h": 52.2,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58501,
    "c": 0.10605,
    "h": 100.6
  },
  "luminance": 0.2021
}

Semantic roles & 50–950 ramp

primary
#8A7D26
secondary
#5662B6
accent
#5CE048
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D26

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

Preview Lab → · Contrast checker → · Palette generator →

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