#5F9826#5F9826

#5F9826 is a mid, vivid yellow-green. Relative luminance 0.250; OKLCH L 61.8% C 0.155 H 132.8°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5F9826
RGBrgb(95, 152, 38)
HSLhsl(90, 60%, 37%)
HSVhsv(90, 75%, 60%)
CMYKcmyk(37.5%, 0%, 75%, 40.4%)
CIE-LABlab(57.10, -37.32, 50.76)
CIE-LCHlch(57.10, 63.01, 126.33°)
OKLaboklab(61.77% -0.1051 0.1137)
OKLCHoklch(61.77% 0.155 132.8)
XYZxyz(16.2972, 25.0286, 5.8057)
Luminance0.2503 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9826 #5F2698
analogous
#989826 #5F9826 #269826
triadic
#5F9826 #265F98 #98265F
tetradic
#5F9826 #269898 #5F2698 #982626
square
#5F9826 #269898 #5F2698 #982626
split-complementary
#5F9826 #262698 #982698
monochromatic
#22360E #40671A #5F9826 #7EC932 #9CD761

Accessibility & contrast

On white

3.50
#5F9826 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#5F9826 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9826
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9826#FFFFFF#000000##000000
##5F98261.003.506.016.01
#FFFFFF3.501.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C0F
Deuteranopia (green-blind)
#978731
Tritanopia (blue-blind)
#609282
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5f9826;
/* rgb */ color: rgb(95, 152, 38);
/* oklch */ color: oklch(61.8% 0.155 132.8);
Tailwind
colors: {
  custom: {
    50: '#91b669',
    500: '#5f9826',
    950: '#000000',
  },
}
SCSS
$custom: #5f9826;
$custom-light: #91b669;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9826",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 38
  },
  "hsl": {
    "h": 90,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61766,
    "c": 0.15483,
    "h": 132.8
  },
  "luminance": 0.25029
}

Semantic roles & 50–950 ramp

primary
#5F9826
secondary
#8D5DBD
accent
#45E394
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5F9826

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

Preview Lab → · Contrast checker → · Palette generator →

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