#8A7A2D#8A7A2D

#8A7A2D is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.9% C 0.098 H 97.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A7A2D
RGBrgb(138, 122, 45)
HSLhsl(50, 51%, 36%)
HSVhsv(50, 67%, 54%)
CMYKcmyk(0%, 11.6%, 67.4%, 45.9%)
CIE-LABlab(51.28, -3.33, 42.96)
CIE-LCHlch(51.28, 43.09, 94.43°)
OKLaboklab(57.89% -0.0127 0.0973)
OKLCHoklch(57.89% 0.098 97.4)
XYZxyz(17.9152, 19.5127, 5.3048)
Luminance0.1951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A2D #2D3D8A
analogous
#8A4B2D #8A7A2D #6B8A2D
triadic
#8A7A2D #2D8A7A #7A2D8A
tetradic
#8A7A2D #2D8A4B #2D3D8A #8A2D6B
square
#8A7A2D #2D8A4B #2D3D8A #8A2D6B
split-complementary
#8A7A2D #2D6B8A #4B2D8A
monochromatic
#2E280F #5C511E #8A7A2D #B8A33C #CDBB65

Accessibility & contrast

On white

4.28
#8A7A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8A7A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A2D
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A2D#FFFFFF#000000##000000
##8A7A2D1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#867724
Deuteranopia (green-blind)
#8A7C31
Tritanopia (blue-blind)
#95716A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a2d;
/* rgb */ color: rgb(138, 122, 45);
/* oklch */ color: oklch(57.9% 0.098 97.4);
Tailwind
colors: {
  custom: {
    50: '#afa06a',
    500: '#8a7a2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a2d;
$custom-light: #afa06a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a2d",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 49.677,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.5789,
    "c": 0.09814,
    "h": 97.4
  },
  "luminance": 0.19512
}

Semantic roles & 50–950 ramp

primary
#8A7A2D
secondary
#606EB3
accent
#66DA4D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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