#8B731B#8B731B

#8B731B is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.3% C 0.106 H 92.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8B731B
RGBrgb(139, 115, 27)
HSLhsl(47, 67%, 33%)
HSVhsv(47, 81%, 55%)
CMYKcmyk(0%, 17.3%, 80.6%, 45.5%)
CIE-LABlab(49.29, 0.16, 48.47)
CIE-LCHlch(49.29, 48.47, 89.81°)
OKLaboklab(56.3% -0.0049 0.1054)
OKLCHoklch(56.3% 0.106 92.7)
XYZxyz(16.9770, 17.8306, 3.5842)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B731B #1B338B
analogous
#8B3B1B #8B731B #6B8B1B
triadic
#8B731B #1B8B73 #731B8B
tetradic
#8B731B #1B8B3B #1B338B #8B1B6B
square
#8B731B #1B8B3B #1B338B #8B1B6B
split-complementary
#8B731B #1B6B8B #3B1B8B
monochromatic
#251E07 #584911 #8B731B #BE9D25 #DBBB45

Accessibility & contrast

On white

4.60
#8B731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8B731B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8B731B
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B731B#FFFFFF#000000##FFFFFF
##8B731B1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807108
Deuteranopia (green-blind)
#867821
Tritanopia (blue-blind)
#976962
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8b731b;
/* rgb */ color: rgb(139, 115, 27);
/* oklch */ color: oklch(56.3% 0.106 92.7);
Tailwind
colors: {
  custom: {
    50: '#b19a5f',
    500: '#8b731b',
    950: '#000000',
  },
}
SCSS
$custom: #8b731b;
$custom-light: #b19a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8b731b",
  "rgb": {
    "r": 139,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 47.143,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56297,
    "c": 0.10554,
    "h": 92.7
  },
  "luminance": 0.1783
}

Semantic roles & 50–950 ramp

primary
#8B731B
secondary
#455FBC
accent
#62EA3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8B731B

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

Preview Lab → · Contrast checker → · Palette generator →

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