#8A7E2C#8A7E2C

#8A7E2C is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.102 H 100.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A7E2C
RGBrgb(138, 126, 44)
HSLhsl(52, 52%, 36%)
HSVhsv(52, 68%, 54%)
CMYKcmyk(0%, 8.7%, 68.1%, 45.9%)
CIE-LABlab(52.41, -5.62, 44.59)
CIE-LCHlch(52.41, 44.94, 97.19°)
OKLaboklab(58.78% -0.0194 0.1006)
OKLCHoklch(58.78% 0.102 100.9)
XYZxyz(18.3975, 20.5076, 5.3717)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E2C #2C388A
analogous
#8A4F2C #8A7E2C #678A2C
triadic
#8A7E2C #2C8A7E #7E2C8A
tetradic
#8A7E2C #2C8A4F #2C388A #8A2C67
square
#8A7E2C #2C8A4F #2C388A #8A2C67
split-complementary
#8A7E2C #2C678A #4F2C8A
monochromatic
#2D290E #5C541D #8A7E2C #B8A83B #CDC063

Accessibility & contrast

On white

4.12
#8A7E2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A7E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E2C
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E2C#FFFFFF#000000##000000
##8A7E2C1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A21
Deuteranopia (green-blind)
#8D7F31
Tritanopia (blue-blind)
#95756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e2c;
/* rgb */ color: rgb(138, 126, 44);
/* oklch */ color: oklch(58.8% 0.102 100.9);
Tailwind
colors: {
  custom: {
    50: '#afa36a',
    500: '#8a7e2c',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e2c;
$custom-light: #afa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e2c",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 44
  },
  "hsl": {
    "h": 52.34,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58779,
    "c": 0.10245,
    "h": 100.9
  },
  "luminance": 0.20507
}

Semantic roles & 50–950 ramp

primary
#8A7E2C
secondary
#5E69B4
accent
#5FDB4D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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