#8A7B2D#8A7B2D

#8A7B2D is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 58.1% C 0.099 H 98.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A7B2D
RGBrgb(138, 123, 45)
HSLhsl(50, 51%, 36%)
HSVhsv(50, 67%, 54%)
CMYKcmyk(0%, 10.9%, 67.4%, 45.9%)
CIE-LABlab(51.56, -3.89, 43.26)
CIE-LCHlch(51.56, 43.43, 95.14°)
OKLaboklab(58.11% -0.0143 0.098)
OKLCHoklch(58.11% 0.099 98.3)
XYZxyz(18.0386, 19.7595, 5.3459)
Luminance0.1976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B2D #2D3C8A
analogous
#8A4C2D #8A7B2D #6A8A2D
triadic
#8A7B2D #2D8A7B #7B2D8A
tetradic
#8A7B2D #2D8A4C #2D3C8A #8A2D6A
square
#8A7B2D #2D8A4C #2D3C8A #8A2D6A
split-complementary
#8A7B2D #2D6A8A #4C2D8A
monochromatic
#2E290F #5C521E #8A7B2D #B8A43C #CDBC65

Accessibility & contrast

On white

4.24
#8A7B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8A7B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B2D
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B2D#FFFFFF#000000##000000
##8A7B2D1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877823
Deuteranopia (green-blind)
#8B7D31
Tritanopia (blue-blind)
#95726B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b2d;
/* rgb */ color: rgb(138, 123, 45);
/* oklch */ color: oklch(58.1% 0.099 98.3);
Tailwind
colors: {
  custom: {
    50: '#afa06a',
    500: '#8a7b2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b2d;
$custom-light: #afa06a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b2d",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 45
  },
  "hsl": {
    "h": 50.323,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.58114,
    "c": 0.09899,
    "h": 98.3
  },
  "luminance": 0.19759
}

Semantic roles & 50–950 ramp

primary
#8A7B2D
secondary
#606DB3
accent
#64DA4D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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