#8A7C2B#8A7C2B

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

Color values

HEX#8A7C2B
RGBrgb(138, 124, 43)
HSLhsl(51, 52%, 35%)
HSVhsv(51, 69%, 54%)
CMYKcmyk(0%, 10.1%, 68.8%, 45.9%)
CIE-LABlab(51.83, -4.57, 44.44)
CIE-LCHlch(51.83, 44.67, 95.88°)
OKLaboklab(58.32% -0.0165 0.1001)
OKLCHoklch(58.32% 0.101 99.4)
XYZxyz(18.1257, 19.9938, 5.1895)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C2B #2B398A
analogous
#8A4C2B #8A7C2B #688A2B
triadic
#8A7C2B #2B8A7C #7C2B8A
tetradic
#8A7C2B #2B8A4C #2B398A #8A2B68
square
#8A7C2B #2B8A4C #2B398A #8A2B68
split-complementary
#8A7C2B #2B688A #4C2B8A
monochromatic
#2D280E #5B521C #8A7C2B #B9A63A #CEBE61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7C2B#FFFFFF#000000##000000
##8A7C2B1.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)
#887920
Deuteranopia (green-blind)
#8C7E30
Tritanopia (blue-blind)
#95736B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7c2b;
/* rgb */ color: rgb(138, 124, 43);
/* oklch */ color: oklch(58.3% 0.101 99.4);
Tailwind
colors: {
  custom: {
    50: '#afa169',
    500: '#8a7c2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c2b;
$custom-light: #afa169;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c2b",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 43
  },
  "hsl": {
    "h": 51.158,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58319,
    "c": 0.10146,
    "h": 99.4
  },
  "luminance": 0.19993
}

Semantic roles & 50–950 ramp

primary
#8A7C2B
secondary
#5D6AB4
accent
#61DC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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