#5F802C#5F802C

#5F802C is a mid, moderate yellow-green. Relative luminance 0.181; OKLCH L 55.6% C 0.118 H 128.0°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5F802C
RGBrgb(95, 128, 44)
HSLhsl(84, 49%, 34%)
HSVhsv(84, 66%, 50%)
CMYKcmyk(25.8%, 0%, 65.6%, 49.8%)
CIE-LABlab(49.56, -25.68, 40.53)
CIE-LCHlch(49.56, 47.98, 122.36°)
OKLaboklab(55.64% -0.0728 0.0931)
OKLCHoklch(55.64% 0.118 128)
XYZxyz(12.8931, 18.0528, 5.1877)
Luminance0.1805 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F802C #4D2C80
analogous
#80772C #5F802C #35802C
triadic
#5F802C #2C5F80 #802C5F
tetradic
#5F802C #2C8077 #4D2C80 #802C35
square
#5F802C #2C8077 #4D2C80 #802C35
split-complementary
#5F802C #2C3580 #772C80
monochromatic
#1B250D #3D521C #5F802C #81AE3C #9EC85F

Accessibility & contrast

On white

4.55
#5F802C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#5F802C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F802C
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F802C#FFFFFF#000000##000000
##5F802C1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867722
Deuteranopia (green-blind)
#827532
Tritanopia (blue-blind)
#627A6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5f802c;
/* rgb */ color: rgb(95, 128, 44);
/* oklch */ color: oklch(55.6% 0.118 128.0);
Tailwind
colors: {
  custom: {
    50: '#8fa569',
    500: '#5f802c',
    950: '#000000',
  },
}
SCSS
$custom: #5f802c;
$custom-light: #8fa569;
$custom-dark: #000000;
JSON
{
  "hex": "#5f802c",
  "rgb": {
    "r": 95,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 83.571,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.55642,
    "c": 0.11817,
    "h": 128
  },
  "luminance": 0.18053
}

Semantic roles & 50–950 ramp

primary
#5F802C
secondary
#7B5AAE
accent
#4FD885
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F802C

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

Preview Lab → · Contrast checker → · Palette generator →

#5F802C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva