#8A7C2A#8A7C2A

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

Color values

HEX#8A7C2A
RGBrgb(138, 124, 42)
HSLhsl(51, 53%, 35%)
HSVhsv(51, 70%, 54%)
CMYKcmyk(0%, 10.1%, 69.6%, 45.9%)
CIE-LABlab(51.82, -4.63, 44.87)
CIE-LCHlch(51.82, 45.11, 95.90°)
OKLaboklab(58.31% -0.0168 0.1008)
OKLCHoklch(58.31% 0.102 99.5)
XYZxyz(18.1076, 19.9866, 5.0940)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C2A #2A388A
analogous
#8A4C2A #8A7C2A #688A2A
triadic
#8A7C2A #2A8A7C #7C2A8A
tetradic
#8A7C2A #2A8A4C #2A388A #8A2A68
square
#8A7C2A #2A8A4C #2A388A #8A2A68
split-complementary
#8A7C2A #2A688A #4C2A8A
monochromatic
#2C280D #5B521C #8A7C2A #B9A638 #CFBE60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7C2A#FFFFFF#000000##000000
##8A7C2A1.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)
#88791F
Deuteranopia (green-blind)
#8C7E2F
Tritanopia (blue-blind)
#95736B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7c2a;
/* rgb */ color: rgb(138, 124, 42);
/* oklch */ color: oklch(58.3% 0.102 99.5);
Tailwind
colors: {
  custom: {
    50: '#afa168',
    500: '#8a7c2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c2a;
$custom-light: #afa168;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c2a",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 42
  },
  "hsl": {
    "h": 51.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.5831,
    "c": 0.10223,
    "h": 99.5
  },
  "luminance": 0.19986
}

Semantic roles & 50–950 ramp

primary
#8A7C2A
secondary
#5B68B4
accent
#60DD4B
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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