#8A7E2B#8A7E2B

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

Color values

HEX#8A7E2B
RGBrgb(138, 126, 43)
HSLhsl(52, 52%, 35%)
HSVhsv(52, 69%, 54%)
CMYKcmyk(0%, 8.7%, 68.8%, 45.9%)
CIE-LABlab(52.40, -5.69, 45.02)
CIE-LCHlch(52.40, 45.38, 97.20°)
OKLaboklab(58.77% -0.0197 0.1013)
OKLCHoklch(58.77% 0.103 101)
XYZxyz(18.3789, 20.5002, 5.2739)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E2B #2B378A
analogous
#8A4E2B #8A7E2B #668A2B
triadic
#8A7E2B #2B8A7E #7E2B8A
tetradic
#8A7E2B #2B8A4E #2B378A #8A2B66
square
#8A7E2B #2B8A4E #2B378A #8A2B66
split-complementary
#8A7E2B #2B668A #4E2B8A
monochromatic
#2D290E #5B531C #8A7E2B #B9A93A #CEC061

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7E2B#FFFFFF#000000##000000
##8A7E2B1.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)
#8A7A20
Deuteranopia (green-blind)
#8D7F30
Tritanopia (blue-blind)
#95756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e2b;
/* rgb */ color: rgb(138, 126, 43);
/* oklch */ color: oklch(58.8% 0.103 101.0);
Tailwind
colors: {
  custom: {
    50: '#afa369',
    500: '#8a7e2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e2b;
$custom-light: #afa369;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e2b",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 52.421,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.5877,
    "c": 0.10324,
    "h": 101
  },
  "luminance": 0.20499
}

Semantic roles & 50–950 ramp

primary
#8A7E2B
secondary
#5D68B4
accent
#5EDC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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