#8A7F26#8A7F26

#8A7F26 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.108 H 102.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A7F26
RGBrgb(138, 127, 38)
HSLhsl(53, 57%, 35%)
HSVhsv(53, 72%, 54%)
CMYKcmyk(0%, 8%, 72.5%, 45.9%)
CIE-LABlab(52.64, -6.53, 47.39)
CIE-LCHlch(52.64, 47.84, 97.84°)
OKLaboklab(58.95% -0.0227 0.1054)
OKLCHoklch(58.95% 0.108 102.1)
XYZxyz(18.4213, 20.7227, 4.8629)
Luminance0.2072 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F26 #26318A
analogous
#8A4D26 #8A7F26 #638A26
triadic
#8A7F26 #268A7F #7F268A
tetradic
#8A7F26 #268A4D #26318A #8A2663
square
#8A7F26 #268A4D #26318A #8A2663
split-complementary
#8A7F26 #26638A #4D268A
monochromatic
#2A270C #5A5319 #8A7F26 #BAAB33 #D1C459

Accessibility & contrast

On white

4.08
#8A7F26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8A7F26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F26
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F26#FFFFFF#000000##000000
##8A7F261.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B18
Deuteranopia (green-blind)
#8E802C
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f26;
/* rgb */ color: rgb(138, 127, 38);
/* oklch */ color: oklch(59.0% 0.108 102.1);
Tailwind
colors: {
  custom: {
    50: '#afa366',
    500: '#8a7f26',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f26;
$custom-light: #afa366;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f26",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 38
  },
  "hsl": {
    "h": 53.4,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58954,
    "c": 0.10785,
    "h": 102.1
  },
  "luminance": 0.20722
}

Semantic roles & 50–950 ramp

primary
#8A7F26
secondary
#5660B6
accent
#58E048
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F26

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

Preview Lab → · Contrast checker → · Palette generator →

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