#8F8028#8F8028

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

Color values

HEX#8F8028
RGBrgb(143, 128, 40)
HSLhsl(51, 56%, 36%)
HSVhsv(51, 72%, 56%)
CMYKcmyk(0%, 10.5%, 72%, 43.9%)
CIE-LABlab(53.42, -4.67, 47.50)
CIE-LCHlch(53.42, 47.73, 95.62°)
OKLaboklab(59.69% -0.0175 0.1059)
OKLCHoklch(59.69% 0.107 99.4)
XYZxyz(19.4308, 21.4321, 5.1204)
Luminance0.2143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8028 #28378F
analogous
#8F4C28 #8F8028 #6A8F28
triadic
#8F8028 #288F80 #80288F
tetradic
#8F8028 #288F4C #28378F #8F286A
square
#8F8028 #288F4C #28378F #8F286A
split-complementary
#8F8028 #286A8F #4C288F
monochromatic
#2F2A0D #5F551B #8F8028 #BFAB35 #D2C25F

Accessibility & contrast

On white

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

On black

5.29
#8F8028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8028
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8028#FFFFFF#000000##000000
##8F80281.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f8028;
/* rgb */ color: rgb(143, 128, 40);
/* oklch */ color: oklch(59.7% 0.107 99.4);
Tailwind
colors: {
  custom: {
    50: '#b3a468',
    500: '#8f8028',
    950: '#000000',
  },
}
SCSS
$custom: #8f8028;
$custom-light: #b3a468;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8028",
  "rgb": {
    "r": 143,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 51.262,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59686,
    "c": 0.10728,
    "h": 99.4
  },
  "luminance": 0.21431
}

Semantic roles & 50–950 ramp

primary
#8F8028
secondary
#5B69B8
accent
#5EE048
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8028

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

Preview Lab → · Contrast checker → · Palette generator →

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