#8A7F2B#8A7F2B

#8A7F2B is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.104 H 101.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A7F2B
RGBrgb(138, 127, 43)
HSLhsl(53, 52%, 35%)
HSVhsv(53, 69%, 54%)
CMYKcmyk(0%, 8%, 68.8%, 45.9%)
CIE-LABlab(52.68, -6.24, 45.32)
CIE-LCHlch(52.68, 45.75, 97.84°)
OKLaboklab(59% -0.0213 0.102)
OKLCHoklch(59% 0.104 101.8)
XYZxyz(18.5074, 20.7572, 5.3167)
Luminance0.2076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F2B #2B368A
analogous
#8A502B #8A7F2B #658A2B
triadic
#8A7F2B #2B8A7F #7F2B8A
tetradic
#8A7F2B #2B8A50 #2B368A #8A2B65
square
#8A7F2B #2B8A50 #2B368A #8A2B65
split-complementary
#8A7F2B #2B658A #502B8A
monochromatic
#2D290E #5B541C #8A7F2B #B9AA3A #CEC161

Accessibility & contrast

On white

4.08
#8A7F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A7F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F2B
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F2B#FFFFFF#000000##000000
##8A7F2B1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B20
Deuteranopia (green-blind)
#8E8030
Tritanopia (blue-blind)
#95766E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f2b;
/* rgb */ color: rgb(138, 127, 43);
/* oklch */ color: oklch(59.0% 0.104 101.8);
Tailwind
colors: {
  custom: {
    50: '#afa369',
    500: '#8a7f2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f2b;
$custom-light: #afa369;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f2b",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 53.053,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58996,
    "c": 0.10416,
    "h": 101.8
  },
  "luminance": 0.20756
}

Semantic roles & 50–950 ramp

primary
#8A7F2B
secondary
#5D67B4
accent
#5DDC4C
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A7F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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