#8A731F#8A731F

#8A731F is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.2% C 0.103 H 92.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A731F
RGBrgb(138, 115, 31)
HSLhsl(47, 63%, 33%)
HSVhsv(47, 78%, 54%)
CMYKcmyk(0%, 16.7%, 77.5%, 45.9%)
CIE-LABlab(49.21, -0.14, 46.86)
CIE-LCHlch(49.21, 46.86, 90.17°)
OKLaboklab(56.22% -0.0053 0.1029)
OKLCHoklch(56.22% 0.103 92.9)
XYZxyz(16.8602, 17.7647, 3.8369)
Luminance0.1776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A731F #1F368A
analogous
#8A3D1F #8A731F #6B8A1F
triadic
#8A731F #1F8A73 #731F8A
tetradic
#8A731F #1F8A3D #1F368A #8A1F6B
square
#8A731F #1F8A3D #1F368A #8A1F6B
split-complementary
#8A731F #1F6B8A #3D1F8A
monochromatic
#262009 #584914 #8A731F #BC9D2A #D7B94C

Accessibility & contrast

On white

4.61
#8A731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A731F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A731F#FFFFFF#000000##FFFFFF
##8A731F1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#966963
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a731f;
/* rgb */ color: rgb(138, 115, 31);
/* oklch */ color: oklch(56.2% 0.103 92.9);
Tailwind
colors: {
  custom: {
    50: '#b09a61',
    500: '#8a731f',
    950: '#000000',
  },
}
SCSS
$custom: #8a731f;
$custom-light: #b09a61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a731f",
  "rgb": {
    "r": 138,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 47.103,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56217,
    "c": 0.10303,
    "h": 92.9
  },
  "luminance": 0.17764
}

Semantic roles & 50–950 ramp

primary
#8A731F
secondary
#4B63BA
accent
#65E641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A731F

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

Preview Lab → · Contrast checker → · Palette generator →

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