#8A781F#8A781F

#8A781F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.3% C 0.107 H 97.2°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A781F
RGBrgb(138, 120, 31)
HSLhsl(50, 63%, 33%)
HSVhsv(50, 78%, 54%)
CMYKcmyk(0%, 13%, 77.5%, 45.9%)
CIE-LABlab(50.61, -2.97, 48.19)
CIE-LCHlch(50.61, 48.28, 93.52°)
OKLaboklab(57.33% -0.0133 0.1057)
OKLCHoklch(57.33% 0.107 97.2)
XYZxyz(17.4459, 18.9361, 4.0322)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A781F #1F318A
analogous
#8A431F #8A781F #668A1F
triadic
#8A781F #1F8A78 #781F8A
tetradic
#8A781F #1F8A43 #1F318A #8A1F66
square
#8A781F #1F8A43 #1F318A #8A1F66
split-complementary
#8A781F #1F668A #431F8A
monochromatic
#262109 #584D14 #8A781F #BCA32A #D7C04C

Accessibility & contrast

On white

4.39
#8A781F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8A781F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A781F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A781F#FFFFFF#000000##000000
##8A781F1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750E
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#956E67
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a781f;
/* rgb */ color: rgb(138, 120, 31);
/* oklch */ color: oklch(57.3% 0.107 97.2);
Tailwind
colors: {
  custom: {
    50: '#b09e62',
    500: '#8a781f',
    950: '#000000',
  },
}
SCSS
$custom: #8a781f;
$custom-light: #b09e62;
$custom-dark: #000000;
JSON
{
  "hex": "#8a781f",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 49.907,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57327,
    "c": 0.10656,
    "h": 97.2
  },
  "luminance": 0.18935
}

Semantic roles & 50–950 ramp

primary
#8A781F
secondary
#4B5EBA
accent
#5DE641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A781F

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

Preview Lab → · Contrast checker → · Palette generator →

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