#8C781C#8C781C

#8C781C is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.5% C 0.108 H 96.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8C781C
RGBrgb(140, 120, 28)
HSLhsl(49, 67%, 33%)
HSVhsv(49, 80%, 55%)
CMYKcmyk(0%, 14.3%, 80%, 45.1%)
CIE-LABlab(50.80, -2.16, 49.53)
CIE-LCHlch(50.80, 49.57, 92.50°)
OKLaboklab(57.51% -0.0115 0.1079)
OKLCHoklch(57.51% 0.108 96.1)
XYZxyz(17.7422, 19.0932, 3.8492)
Luminance0.1909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C781C #1C308C
analogous
#8C401C #8C781C #688C1C
triadic
#8C781C #1C8C78 #781C8C
tetradic
#8C781C #1C8C40 #1C308C #8C1C68
square
#8C781C #1C8C40 #1C308C #8C1C68
split-complementary
#8C781C #1C688C #401C8C
monochromatic
#262108 #594C12 #8C781C #BFA426 #DAC048

Accessibility & contrast

On white

4.36
#8C781C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8C781C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C781C
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C781C#FFFFFF#000000##000000
##8C781C1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#857507
Deuteranopia (green-blind)
#8A7C22
Tritanopia (blue-blind)
#986E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8c781c;
/* rgb */ color: rgb(140, 120, 28);
/* oklch */ color: oklch(57.5% 0.108 96.1);
Tailwind
colors: {
  custom: {
    50: '#b19e61',
    500: '#8c781c',
    950: '#000000',
  },
}
SCSS
$custom: #8c781c;
$custom-light: #b19e61;
$custom-dark: #000000;
JSON
{
  "hex": "#8c781c",
  "rgb": {
    "r": 140,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 49.286,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57514,
    "c": 0.10846,
    "h": 96.1
  },
  "luminance": 0.19092
}

Semantic roles & 50–950 ramp

primary
#8C781C
secondary
#485CBC
accent
#5DEA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8C781C

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

Preview Lab → · Contrast checker → · Palette generator →

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