#8A7122#8A7122

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

Color values

HEX#8A7122
RGBrgb(138, 113, 34)
HSLhsl(46, 60%, 34%)
HSVhsv(46, 75%, 54%)
CMYKcmyk(0%, 18.1%, 75.4%, 45.9%)
CIE-LABlab(48.67, 1.15, 45.13)
CIE-LCHlch(48.67, 45.15, 88.54°)
OKLaboklab(55.8% -0.0013 0.0999)
OKLCHoklch(55.8% 0.1 90.7)
XYZxyz(16.6760, 17.3300, 3.9798)
Luminance0.1733 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7122 #223B8A
analogous
#8A3D22 #8A7122 #6F8A22
triadic
#8A7122 #228A71 #71228A
tetradic
#8A7122 #228A3D #223B8A #8A226F
square
#8A7122 #228A3D #223B8A #8A226F
split-complementary
#8A7122 #226F8A #3D228A
monochromatic
#28210A #594916 #8A7122 #BB992E #D4B552

Accessibility & contrast

On white

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

On black

4.47
#8A7122 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A7122#FFFFFF#000000##FFFFFF
##8A71221.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7122;
/* rgb */ color: rgb(138, 113, 34);
/* oklch */ color: oklch(55.8% 0.100 90.7);
Tailwind
colors: {
  custom: {
    50: '#b09963',
    500: '#8a7122',
    950: '#000000',
  },
}
SCSS
$custom: #8a7122;
$custom-light: #b09963;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7122",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 34
  },
  "hsl": {
    "h": 45.577,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.558,
    "c": 0.09986,
    "h": 90.7
  },
  "luminance": 0.17329
}

Semantic roles & 50–950 ramp

primary
#8A7122
secondary
#5069B8
accent
#6BE444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110D05
muted
#807E7A

Preview Lab

Preview with #8A7122

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

Preview Lab → · Contrast checker → · Palette generator →

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