#8A7121#8A7121

#8A7121 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.8% C 0.101 H 90.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A7121
RGBrgb(138, 113, 33)
HSLhsl(46, 61%, 34%)
HSVhsv(46, 76%, 54%)
CMYKcmyk(0%, 18.1%, 76.1%, 45.9%)
CIE-LABlab(48.67, 1.10, 45.54)
CIE-LCHlch(48.67, 45.55, 88.62°)
OKLaboklab(55.79% -0.0015 0.1005)
OKLCHoklch(55.79% 0.101 90.9)
XYZxyz(16.6618, 17.3244, 3.9049)
Luminance0.1732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7121 #213A8A
analogous
#8A3C21 #8A7121 #6E8A21
triadic
#8A7121 #218A71 #71218A
tetradic
#8A7121 #218A3C #213A8A #8A216E
square
#8A7121 #218A3C #213A8A #8A216E
split-complementary
#8A7121 #216E8A #3C218A
monochromatic
#272009 #594915 #8A7121 #BB992D #D5B650

Accessibility & contrast

On white

4.70
#8A7121 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A7121 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A7121
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7121#FFFFFF#000000##FFFFFF
##8A71211.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F14
Deuteranopia (green-blind)
#847725
Tritanopia (blue-blind)
#966761
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a7121;
/* rgb */ color: rgb(138, 113, 33);
/* oklch */ color: oklch(55.8% 0.101 90.9);
Tailwind
colors: {
  custom: {
    50: '#b09962',
    500: '#8a7121',
    950: '#000000',
  },
}
SCSS
$custom: #8a7121;
$custom-light: #b09962;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7121",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 33
  },
  "hsl": {
    "h": 45.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55793,
    "c": 0.10052,
    "h": 90.9
  },
  "luminance": 0.17323
}

Semantic roles & 50–950 ramp

primary
#8A7121
secondary
#4E68B9
accent
#6AE543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110D05
muted
#807E7A

Preview Lab

Preview with #8A7121

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

Preview Lab → · Contrast checker → · Palette generator →

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