#8A7C1F#8A7C1F

#8A7C1F is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.2% C 0.110 H 100.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A7C1F
RGBrgb(138, 124, 31)
HSLhsl(52, 63%, 33%)
HSVhsv(52, 78%, 54%)
CMYKcmyk(0%, 10.1%, 77.5%, 45.9%)
CIE-LABlab(51.74, -5.21, 49.25)
CIE-LCHlch(51.74, 49.52, 96.04°)
OKLaboklab(58.22% -0.0197 0.108)
OKLCHoklch(58.22% 0.11 100.3)
XYZxyz(17.9371, 19.9184, 4.1959)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C1F #1F2D8A
analogous
#8A471F #8A7C1F #628A1F
triadic
#8A7C1F #1F8A7C #7C1F8A
tetradic
#8A7C1F #1F8A47 #1F2D8A #8A1F62
square
#8A7C1F #1F8A47 #1F2D8A #8A1F62
split-complementary
#8A7C1F #1F628A #471F8A
monochromatic
#262209 #584F14 #8A7C1F #BCA92A #D7C54C

Accessibility & contrast

On white

4.21
#8A7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8A7C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7C1F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7C1F#FFFFFF#000000##000000
##8A7C1F1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#8C7E25
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7c1f;
/* rgb */ color: rgb(138, 124, 31);
/* oklch */ color: oklch(58.2% 0.110 100.3);
Tailwind
colors: {
  custom: {
    50: '#b0a162',
    500: '#8a7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c1f;
$custom-light: #b0a162;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c1f",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 52.15,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.10976,
    "h": 100.3
  },
  "luminance": 0.19918
}

Semantic roles & 50–950 ramp

primary
#8A7C1F
secondary
#4B5ABA
accent
#57E641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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