#8A7B2C#8A7B2C

#8A7B2C is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 58.1% C 0.100 H 98.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A7B2C
RGBrgb(138, 123, 44)
HSLhsl(50, 52%, 36%)
HSVhsv(50, 68%, 54%)
CMYKcmyk(0%, 10.9%, 68.1%, 45.9%)
CIE-LABlab(51.56, -3.95, 43.70)
CIE-LCHlch(51.56, 43.88, 95.17°)
OKLaboklab(58.1% -0.0146 0.0987)
OKLCHoklch(58.1% 0.1 98.4)
XYZxyz(18.0196, 19.7519, 5.2457)
Luminance0.1975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B2C #2C3B8A
analogous
#8A4C2C #8A7B2C #6A8A2C
triadic
#8A7B2C #2C8A7B #7B2C8A
tetradic
#8A7B2C #2C8A4C #2C3B8A #8A2C6A
square
#8A7B2C #2C8A4C #2C3B8A #8A2C6A
split-complementary
#8A7B2C #2C6A8A #4C2C8A
monochromatic
#2D280E #5C521D #8A7B2C #B8A43B #CDBC63

Accessibility & contrast

On white

4.24
#8A7B2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8A7B2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B2C
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B2C#FFFFFF#000000##000000
##8A7B2C1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877822
Deuteranopia (green-blind)
#8B7D30
Tritanopia (blue-blind)
#95726B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b2c;
/* rgb */ color: rgb(138, 123, 44);
/* oklch */ color: oklch(58.1% 0.100 98.4);
Tailwind
colors: {
  custom: {
    50: '#afa069',
    500: '#8a7b2c',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b2c;
$custom-light: #afa069;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b2c",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 44
  },
  "hsl": {
    "h": 50.426,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58104,
    "c": 0.0998,
    "h": 98.4
  },
  "luminance": 0.19751
}

Semantic roles & 50–950 ramp

primary
#8A7B2C
secondary
#5E6CB4
accent
#63DB4D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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