#8A7B1F#8A7B1F

#8A7B1F is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.0% C 0.109 H 99.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A7B1F
RGBrgb(138, 123, 31)
HSLhsl(52, 63%, 33%)
HSVhsv(52, 78%, 54%)
CMYKcmyk(0%, 10.9%, 77.5%, 45.9%)
CIE-LABlab(51.46, -4.65, 48.98)
CIE-LCHlch(51.46, 49.20, 95.42°)
OKLaboklab(58% -0.0181 0.1074)
OKLCHoklch(58% 0.109 99.6)
XYZxyz(17.8124, 19.6690, 4.1543)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B1F #1F2E8A
analogous
#8A451F #8A7B1F #638A1F
triadic
#8A7B1F #1F8A7B #7B1F8A
tetradic
#8A7B1F #1F8A45 #1F2E8A #8A1F63
square
#8A7B1F #1F8A45 #1F2E8A #8A1F63
split-complementary
#8A7B1F #1F638A #451F8A
monochromatic
#262209 #584E14 #8A7B1F #BCA82A #D7C34C

Accessibility & contrast

On white

4.26
#8A7B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8A7B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B1F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B1F#FFFFFF#000000##000000
##8A7B1F1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780D
Deuteranopia (green-blind)
#8C7D25
Tritanopia (blue-blind)
#957169
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b1f;
/* rgb */ color: rgb(138, 123, 31);
/* oklch */ color: oklch(58.0% 0.109 99.6);
Tailwind
colors: {
  custom: {
    50: '#b0a062',
    500: '#8a7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b1f;
$custom-light: #b0a062;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b1f",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 51.589,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57999,
    "c": 0.10893,
    "h": 99.6
  },
  "luminance": 0.19668
}

Semantic roles & 50–950 ramp

primary
#8A7B1F
secondary
#4B5BBA
accent
#59E641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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