#8A7C1B#8A7C1B

#8A7C1B is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.2% C 0.112 H 100.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A7C1B
RGBrgb(138, 124, 27)
HSLhsl(52, 67%, 32%)
HSVhsv(52, 80%, 54%)
CMYKcmyk(0%, 10.1%, 80.4%, 45.9%)
CIE-LABlab(51.72, -5.37, 50.64)
CIE-LCHlch(51.72, 50.92, 96.06°)
OKLaboklab(58.2% -0.0205 0.1101)
OKLCHoklch(58.2% 0.112 100.6)
XYZxyz(17.8876, 19.8986, 3.9353)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C1B #1B298A
analogous
#8A441B #8A7C1B #618A1B
triadic
#8A7C1B #1B8A7C #7C1B8A
tetradic
#8A7C1B #1B8A44 #1B298A #8A1B61
square
#8A7C1B #1B8A44 #1B298A #8A1B61
split-complementary
#8A7C1B #1B618A #441B8A
monochromatic
#242007 #574E11 #8A7C1B #BDAA25 #DBC845

Accessibility & contrast

On white

4.22
#8A7C1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8A7C1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7C1B
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7C1B#FFFFFF#000000##000000
##8A7C1B1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897803
Deuteranopia (green-blind)
#8D7E22
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7c1b;
/* rgb */ color: rgb(138, 124, 27);
/* oklch */ color: oklch(58.2% 0.112 100.6);
Tailwind
colors: {
  custom: {
    50: '#b0a161',
    500: '#8a7c1b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c1b;
$custom-light: #b0a161;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c1b",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 52.432,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58199,
    "c": 0.11201,
    "h": 100.6
  },
  "luminance": 0.19898
}

Semantic roles & 50–950 ramp

primary
#8A7C1B
secondary
#4554BC
accent
#53EA3E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A7C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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