#8F8027#8F8027

#8F8027 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.7% C 0.108 H 99.5°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8F8027
RGBrgb(143, 128, 39)
HSLhsl(51, 57%, 36%)
HSVhsv(51, 73%, 56%)
CMYKcmyk(0%, 10.5%, 72.7%, 43.9%)
CIE-LABlab(53.41, -4.73, 47.90)
CIE-LCHlch(53.41, 48.14, 95.64°)
OKLaboklab(59.68% -0.0177 0.1065)
OKLCHoklch(59.68% 0.108 99.5)
XYZxyz(19.4140, 21.4254, 5.0320)
Luminance0.2142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8027 #27368F
analogous
#8F4C27 #8F8027 #6A8F27
triadic
#8F8027 #278F80 #80278F
tetradic
#8F8027 #278F4C #27368F #8F276A
square
#8F8027 #278F4C #27368F #8F276A
split-complementary
#8F8027 #276A8F #4C278F
monochromatic
#2F2A0D #5F551A #8F8027 #BFAB34 #D3C25D

Accessibility & contrast

On white

3.97
#8F8027 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#8F8027 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8027
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8027#FFFFFF#000000##000000
##8F80271.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C19
Deuteranopia (green-blind)
#91822C
Tritanopia (blue-blind)
#9A766E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8f8027;
/* rgb */ color: rgb(143, 128, 39);
/* oklch */ color: oklch(59.7% 0.108 99.5);
Tailwind
colors: {
  custom: {
    50: '#b3a467',
    500: '#8f8027',
    950: '#000000',
  },
}
SCSS
$custom: #8f8027;
$custom-light: #b3a467;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8027",
  "rgb": {
    "r": 143,
    "g": 128,
    "b": 39
  },
  "hsl": {
    "h": 51.346,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59678,
    "c": 0.10799,
    "h": 99.5
  },
  "luminance": 0.21424
}

Semantic roles & 50–950 ramp

primary
#8F8027
secondary
#5A67B8
accent
#5DE047
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8027

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

Preview Lab → · Contrast checker → · Palette generator →

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