#8D781F#8D781F

#8D781F is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.6% C 0.107 H 95.1°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8D781F
RGBrgb(141, 120, 31)
HSLhsl(49, 64%, 34%)
HSVhsv(49, 78%, 55%)
CMYKcmyk(0%, 14.9%, 78%, 44.7%)
CIE-LABlab(50.92, -1.57, 48.58)
CIE-LCHlch(50.92, 48.60, 91.85°)
OKLaboklab(57.64% -0.0095 0.1064)
OKLCHoklch(57.64% 0.107 95.1)
XYZxyz(17.9493, 19.1956, 4.0558)
Luminance0.1920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D781F #1F348D
analogous
#8D411F #8D781F #6B8D1F
triadic
#8D781F #1F8D78 #781F8D
tetradic
#8D781F #1F8D41 #1F348D #8D1F6B
square
#8D781F #1F8D41 #1F348D #8D1F6B
split-complementary
#8D781F #1F6B8D #411F8D
monochromatic
#292309 #5B4D14 #8D781F #BFA32A #D8BE4E

Accessibility & contrast

On white

4.34
#8D781F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#8D781F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D781F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D781F#FFFFFF#000000##000000
##8D781F1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#85760E
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#996E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8d781f;
/* rgb */ color: rgb(141, 120, 31);
/* oklch */ color: oklch(57.6% 0.107 95.1);
Tailwind
colors: {
  custom: {
    50: '#b29e62',
    500: '#8d781f',
    950: '#000000',
  },
}
SCSS
$custom: #8d781f;
$custom-light: #b29e62;
$custom-dark: #000000;
JSON
{
  "hex": "#8d781f",
  "rgb": {
    "r": 141,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 48.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57637,
    "c": 0.10684,
    "h": 95.1
  },
  "luminance": 0.19195
}

Semantic roles & 50–950 ramp

primary
#8D781F
secondary
#4D62BB
accent
#61E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8D781F

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

Preview Lab → · Contrast checker → · Palette generator →

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