#8A7A2B#8A7A2B

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

Color values

HEX#8A7A2B
RGBrgb(138, 122, 43)
HSLhsl(50, 52%, 35%)
HSVhsv(50, 69%, 54%)
CMYKcmyk(0%, 11.6%, 68.8%, 45.9%)
CIE-LABlab(51.26, -3.45, 43.85)
CIE-LCHlch(51.26, 43.98, 94.50°)
OKLaboklab(57.87% -0.0133 0.0988)
OKLCHoklch(57.87% 0.1 97.7)
XYZxyz(17.8776, 19.4976, 5.1068)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A2B #2B3B8A
analogous
#8A4B2B #8A7A2B #6A8A2B
triadic
#8A7A2B #2B8A7A #7A2B8A
tetradic
#8A7A2B #2B8A4B #2B3B8A #8A2B6A
square
#8A7A2B #2B8A4B #2B3B8A #8A2B6A
split-complementary
#8A7A2B #2B6A8A #4B2B8A
monochromatic
#2D270E #5B511C #8A7A2B #B9A33A #CEBC61

Accessibility & contrast

On white

4.29
#8A7A2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7A2B#FFFFFF#000000##000000
##8A7A2B1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7a2b;
/* rgb */ color: rgb(138, 122, 43);
/* oklch */ color: oklch(57.9% 0.100 97.7);
Tailwind
colors: {
  custom: {
    50: '#afa069',
    500: '#8a7a2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a2b;
$custom-light: #afa069;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a2b",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 49.895,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57871,
    "c": 0.09974,
    "h": 97.7
  },
  "luminance": 0.19497
}

Semantic roles & 50–950 ramp

primary
#8A7A2B
secondary
#5D6CB4
accent
#64DC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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