#8F781A#8F781A

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

Color values

HEX#8F781A
RGBrgb(143, 120, 26)
HSLhsl(48, 69%, 33%)
HSVhsv(48, 82%, 56%)
CMYKcmyk(0%, 16.1%, 81.8%, 43.9%)
CIE-LABlab(51.09, -0.83, 50.60)
CIE-LCHlch(51.09, 50.60, 90.94°)
OKLaboklab(57.82% -0.0081 0.1096)
OKLCHoklch(57.82% 0.11 94.2)
XYZxyz(18.2317, 19.3482, 3.7514)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F781A #1A318F
analogous
#8F3D1A #8F781A #6B8F1A
triadic
#8F781A #1A8F78 #781A8F
tetradic
#8F781A #1A8F3D #1A318F #8F1A6B
square
#8F781A #1A8F3D #1A318F #8F1A6B
split-complementary
#8F781A #1A6B8F #3D1A8F
monochromatic
#272107 #5B4D11 #8F781A #C3A323 #DDC046

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F781A#FFFFFF#000000##000000
##8F781A1.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)
#867603
Deuteranopia (green-blind)
#8B7D21
Tritanopia (blue-blind)
#9B6E67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f781a;
/* rgb */ color: rgb(143, 120, 26);
/* oklch */ color: oklch(57.8% 0.110 94.2);
Tailwind
colors: {
  custom: {
    50: '#b49e60',
    500: '#8f781a',
    950: '#000000',
  },
}
SCSS
$custom: #8f781a;
$custom-light: #b49e60;
$custom-dark: #000000;
JSON
{
  "hex": "#8f781a",
  "rgb": {
    "r": 143,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 48.205,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57816,
    "c": 0.10986,
    "h": 94.2
  },
  "luminance": 0.19347
}

Semantic roles & 50–950 ramp

primary
#8F781A
secondary
#465EBF
accent
#5EEC3C
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F781A

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

Preview Lab → · Contrast checker → · Palette generator →

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