#8A7C2E#8A7C2E

#8A7C2E is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.3% C 0.099 H 99.1°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A7C2E
RGBrgb(138, 124, 46)
HSLhsl(51, 50%, 36%)
HSVhsv(51, 67%, 54%)
CMYKcmyk(0%, 10.1%, 66.7%, 45.9%)
CIE-LABlab(51.86, -4.38, 43.11)
CIE-LCHlch(51.86, 43.33, 95.81°)
OKLaboklab(58.35% -0.0156 0.0978)
OKLCHoklch(58.35% 0.099 99.1)
XYZxyz(18.1828, 20.0167, 5.4901)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C2E #2E3C8A
analogous
#8A4E2E #8A7C2E #6A8A2E
triadic
#8A7C2E #2E8A7C #7C2E8A
tetradic
#8A7C2E #2E8A4E #2E3C8A #8A2E6A
square
#8A7C2E #2E8A4E #2E3C8A #8A2E6A
split-complementary
#8A7C2E #2E6A8A #4E2E8A
monochromatic
#2E2A0F #5C531F #8A7C2E #B8A53D #CCBD66

Accessibility & contrast

On white

4.20
#8A7C2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8A7C2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7C2E
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7C2E#FFFFFF#000000##000000
##8A7C2E1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887924
Deuteranopia (green-blind)
#8C7E32
Tritanopia (blue-blind)
#95736C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7c2e;
/* rgb */ color: rgb(138, 124, 46);
/* oklch */ color: oklch(58.3% 0.099 99.1);
Tailwind
colors: {
  custom: {
    50: '#afa16b',
    500: '#8a7c2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c2e;
$custom-light: #afa16b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c2e",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 50.87,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58348,
    "c": 0.09904,
    "h": 99.1
  },
  "luminance": 0.20016
}

Semantic roles & 50–950 ramp

primary
#8A7C2E
secondary
#616DB3
accent
#63DA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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