#8A731C#8A731C

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

Color values

HEX#8A731C
RGBrgb(138, 115, 28)
HSLhsl(47, 66%, 33%)
HSVhsv(47, 80%, 54%)
CMYKcmyk(0%, 16.7%, 79.7%, 45.9%)
CIE-LABlab(49.19, -0.27, 47.98)
CIE-LCHlch(49.19, 47.98, 90.32°)
OKLaboklab(56.2% -0.006 0.1046)
OKLCHoklch(56.2% 0.105 93.3)
XYZxyz(16.8225, 17.7496, 3.6383)
Luminance0.1775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A731C #1C338A
analogous
#8A3C1C #8A731C #6A8A1C
triadic
#8A731C #1C8A73 #731C8A
tetradic
#8A731C #1C8A3C #1C338A #8A1C6A
square
#8A731C #1C8A3C #1C338A #8A1C6A
split-complementary
#8A731C #1C6A8A #3C1C8A
monochromatic
#241E07 #574912 #8A731C #BD9D26 #DABB47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A731C#FFFFFF#000000##FFFFFF
##8A731C1.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)
#80710A
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#966962
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a731c;
/* rgb */ color: rgb(138, 115, 28);
/* oklch */ color: oklch(56.2% 0.105 93.3);
Tailwind
colors: {
  custom: {
    50: '#b09a60',
    500: '#8a731c',
    950: '#000000',
  },
}
SCSS
$custom: #8a731c;
$custom-light: #b09a60;
$custom-dark: #000000;
JSON
{
  "hex": "#8a731c",
  "rgb": {
    "r": 138,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 47.455,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56197,
    "c": 0.1048,
    "h": 93.3
  },
  "luminance": 0.17749
}

Semantic roles & 50–950 ramp

primary
#8A731C
secondary
#465FBB
accent
#62E93F
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A731C

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

Preview Lab → · Contrast checker → · Palette generator →

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