#8A7F2A#8A7F2A

#8A7F2A is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.105 H 101.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A7F2A
RGBrgb(138, 127, 42)
HSLhsl(53, 53%, 35%)
HSVhsv(53, 70%, 54%)
CMYKcmyk(0%, 8%, 69.6%, 45.9%)
CIE-LABlab(52.67, -6.30, 45.74)
CIE-LCHlch(52.67, 46.18, 97.84°)
OKLaboklab(58.99% -0.0216 0.1027)
OKLCHoklch(58.99% 0.105 101.9)
XYZxyz(18.4893, 20.7500, 5.2213)
Luminance0.2075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F2A #2A358A
analogous
#8A4F2A #8A7F2A #658A2A
triadic
#8A7F2A #2A8A7F #7F2A8A
tetradic
#8A7F2A #2A8A4F #2A358A #8A2A65
square
#8A7F2A #2A8A4F #2A358A #8A2A65
split-complementary
#8A7F2A #2A658A #4F2A8A
monochromatic
#2C290D #5B541C #8A7F2A #B9AA38 #CFC260

Accessibility & contrast

On white

4.08
#8A7F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A7F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F2A
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F2A#FFFFFF#000000##000000
##8A7F2A1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1E
Deuteranopia (green-blind)
#8E802F
Tritanopia (blue-blind)
#95766E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f2a;
/* rgb */ color: rgb(138, 127, 42);
/* oklch */ color: oklch(59.0% 0.105 101.9);
Tailwind
colors: {
  custom: {
    50: '#afa369',
    500: '#8a7f2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f2a;
$custom-light: #afa369;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f2a",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 53.125,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58987,
    "c": 0.10493,
    "h": 101.9
  },
  "luminance": 0.20749
}

Semantic roles & 50–950 ramp

primary
#8A7F2A
secondary
#5B66B4
accent
#5CDD4B
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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