#8A731B#8A731B

#8A731B is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 56.2% C 0.105 H 93.4°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A731B
RGBrgb(138, 115, 27)
HSLhsl(48, 67%, 32%)
HSVhsv(48, 80%, 54%)
CMYKcmyk(0%, 16.7%, 80.4%, 45.9%)
CIE-LABlab(49.19, -0.31, 48.34)
CIE-LCHlch(49.19, 48.34, 90.36°)
OKLaboklab(56.19% -0.0062 0.1052)
OKLCHoklch(56.19% 0.105 93.4)
XYZxyz(16.8108, 17.7449, 3.5764)
Luminance0.1774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A731B #1B328A
analogous
#8A3C1B #8A731B #698A1B
triadic
#8A731B #1B8A73 #731B8A
tetradic
#8A731B #1B8A3C #1B328A #8A1B69
square
#8A731B #1B8A3C #1B328A #8A1B69
split-complementary
#8A731B #1B698A #3C1B8A
monochromatic
#241E07 #574811 #8A731B #BD9E25 #DBBC45

Accessibility & contrast

On white

4.62
#8A731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8A731B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A731B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A731B#FFFFFF#000000##FFFFFF
##8A731B1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a731b;
/* rgb */ color: rgb(138, 115, 27);
/* oklch */ color: oklch(56.2% 0.105 93.4);
Tailwind
colors: {
  custom: {
    50: '#b09a5f',
    500: '#8a731b',
    950: '#000000',
  },
}
SCSS
$custom: #8a731b;
$custom-light: #b09a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a731b",
  "rgb": {
    "r": 138,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 47.568,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5619,
    "c": 0.10536,
    "h": 93.4
  },
  "luminance": 0.17744
}

Semantic roles & 50–950 ramp

primary
#8A731B
secondary
#455DBC
accent
#61EA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A731B

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

Preview Lab → · Contrast checker → · Palette generator →

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