#8A7F1D#8A7F1D

#8A7F1D is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.113 H 102.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A7F1D
RGBrgb(138, 127, 29)
HSLhsl(54, 65%, 33%)
HSVhsv(54, 79%, 54%)
CMYKcmyk(0%, 8%, 79%, 45.9%)
CIE-LABlab(52.59, -6.96, 50.74)
CIE-LCHlch(52.59, 51.22, 97.81°)
OKLaboklab(58.89% -0.0248 0.1108)
OKLCHoklch(58.89% 0.113 102.6)
XYZxyz(18.2932, 20.6715, 4.1886)
Luminance0.2067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F1D #1D288A
analogous
#8A481D #8A7F1D #5E8A1D
triadic
#8A7F1D #1D8A7F #7F1D8A
tetradic
#8A7F1D #1D8A48 #1D288A #8A1D5E
square
#8A7F1D #1D8A48 #1D288A #8A1D5E
split-complementary
#8A7F1D #1D5E8A #481D8A
monochromatic
#252208 #575012 #8A7F1D #BDAE28 #D9CA49

Accessibility & contrast

On white

4.09
#8A7F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#8A7F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F1D
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F1D#FFFFFF#000000##000000
##8A7F1D1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B06
Deuteranopia (green-blind)
#8F8024
Tritanopia (blue-blind)
#95756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7f1d;
/* rgb */ color: rgb(138, 127, 29);
/* oklch */ color: oklch(58.9% 0.113 102.6);
Tailwind
colors: {
  custom: {
    50: '#b0a362',
    500: '#8a7f1d',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f1d;
$custom-light: #b0a362;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f1d",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 53.945,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58891,
    "c": 0.11349,
    "h": 102.6
  },
  "luminance": 0.20671
}

Semantic roles & 50–950 ramp

primary
#8A7F1D
secondary
#4854BB
accent
#51E840
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8A7F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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