#8A7C2F#8A7C2F

#8A7C2F is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.4% C 0.098 H 99.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A7C2F
RGBrgb(138, 124, 47)
HSLhsl(51, 49%, 36%)
HSVhsv(51, 66%, 54%)
CMYKcmyk(0%, 10.1%, 65.9%, 45.9%)
CIE-LABlab(51.87, -4.32, 42.65)
CIE-LCHlch(51.87, 42.87, 95.78°)
OKLaboklab(58.36% -0.0153 0.097)
OKLCHoklch(58.36% 0.098 99)
XYZxyz(18.2027, 20.0246, 5.5951)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C2F #2F3D8A
analogous
#8A4F2F #8A7C2F #6B8A2F
triadic
#8A7C2F #2F8A7C #7C2F8A
tetradic
#8A7C2F #2F8A4F #2F3D8A #8A2F6B
square
#8A7C2F #2F8A4F #2F3D8A #8A2F6B
split-complementary
#8A7C2F #2F6B8A #4F2F8A
monochromatic
#2F2A10 #5C531F #8A7C2F #B8A53F #CCBC68

Accessibility & contrast

On white

4.20
#8A7C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8A7C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7C2F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7C2F#FFFFFF#000000##000000
##8A7C2F1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887926
Deuteranopia (green-blind)
#8C7E33
Tritanopia (blue-blind)
#95736C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7c2f;
/* rgb */ color: rgb(138, 124, 47);
/* oklch */ color: oklch(58.4% 0.098 99.0);
Tailwind
colors: {
  custom: {
    50: '#afa16b',
    500: '#8a7c2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c2f;
$custom-light: #afa16b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c2f",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 47
  },
  "hsl": {
    "h": 50.769,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.58358,
    "c": 0.0982,
    "h": 99
  },
  "luminance": 0.20024
}

Semantic roles & 50–950 ramp

primary
#8A7C2F
secondary
#626FB3
accent
#64D94F
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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