#8F781B#8F781B

#8F781B is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.109 H 94.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8F781B
RGBrgb(143, 120, 27)
HSLhsl(48, 68%, 33%)
HSVhsv(48, 81%, 56%)
CMYKcmyk(0%, 16.1%, 81.1%, 43.9%)
CIE-LABlab(51.10, -0.79, 50.26)
CIE-LCHlch(51.10, 50.27, 90.91°)
OKLaboklab(57.82% -0.0079 0.1091)
OKLCHoklch(57.82% 0.109 94.1)
XYZxyz(18.2430, 19.3528, 3.8113)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F781B #1B328F
analogous
#8F3E1B #8F781B #6C8F1B
triadic
#8F781B #1B8F78 #781B8F
tetradic
#8F781B #1B8F3E #1B328F #8F1B6C
square
#8F781B #1B8F3E #1B328F #8F1B6C
split-complementary
#8F781B #1B6C8F #3E1B8F
monochromatic
#282208 #5C4D11 #8F781B #C2A325 #DCBF48

Accessibility & contrast

On white

4.31
#8F781B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8F781B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F781B
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F781B#FFFFFF#000000##000000
##8F781B1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#867605
Deuteranopia (green-blind)
#8B7D21
Tritanopia (blue-blind)
#9B6E67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f781b;
/* rgb */ color: rgb(143, 120, 27);
/* oklch */ color: oklch(57.8% 0.109 94.1);
Tailwind
colors: {
  custom: {
    50: '#b49e60',
    500: '#8f781b',
    950: '#000000',
  },
}
SCSS
$custom: #8f781b;
$custom-light: #b49e60;
$custom-dark: #000000;
JSON
{
  "hex": "#8f781b",
  "rgb": {
    "r": 143,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 48.103,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57822,
    "c": 0.10934,
    "h": 94.1
  },
  "luminance": 0.19352
}

Semantic roles & 50–950 ramp

primary
#8F781B
secondary
#485FBE
accent
#5FEB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F781B

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

Preview Lab → · Contrast checker → · Palette generator →

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