#8F771B#8F771B

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

Color values

HEX#8F771B
RGBrgb(143, 119, 27)
HSLhsl(48, 68%, 33%)
HSVhsv(48, 81%, 56%)
CMYKcmyk(0%, 16.8%, 81.1%, 43.9%)
CIE-LABlab(50.82, -0.23, 50.01)
CIE-LCHlch(50.82, 50.01, 90.26°)
OKLaboklab(57.6% -0.0063 0.1085)
OKLCHoklch(57.6% 0.109 93.3)
XYZxyz(18.1234, 19.1135, 3.7714)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F771B #1B338F
analogous
#8F3D1B #8F771B #6D8F1B
triadic
#8F771B #1B8F77 #771B8F
tetradic
#8F771B #1B8F3D #1B338F #8F1B6D
square
#8F771B #1B8F3D #1B338F #8F1B6D
split-complementary
#8F771B #1B6D8F #3D1B8F
monochromatic
#282108 #5C4C11 #8F771B #C2A225 #DCBE48

Accessibility & contrast

On white

4.35
#8F771B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F771B#FFFFFF#000000##000000
##8F771B1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#857505
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#9B6D66
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8f771b;
/* rgb */ color: rgb(143, 119, 27);
/* oklch */ color: oklch(57.6% 0.109 93.3);
Tailwind
colors: {
  custom: {
    50: '#b49d60',
    500: '#8f771b',
    950: '#000000',
  },
}
SCSS
$custom: #8f771b;
$custom-light: #b49d60;
$custom-dark: #000000;
JSON
{
  "hex": "#8f771b",
  "rgb": {
    "r": 143,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 47.586,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57602,
    "c": 0.1087,
    "h": 93.3
  },
  "luminance": 0.19112
}

Semantic roles & 50–950 ramp

primary
#8F771B
secondary
#4860BE
accent
#61EB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F771B

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

Preview Lab → · Contrast checker → · Palette generator →

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