#5F8428#5F8428

#5F8428 is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.6% C 0.127 H 128.8°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5F8428
RGBrgb(95, 132, 40)
HSLhsl(84, 53%, 34%)
HSVhsv(84, 70%, 52%)
CMYKcmyk(28%, 0%, 69.7%, 48.2%)
CIE-LABlab(50.79, -27.96, 43.59)
CIE-LCHlch(50.79, 51.79, 122.68°)
OKLaboklab(56.63% -0.0795 0.099)
OKLCHoklch(56.63% 0.127 128.8)
XYZxyz(13.3535, 19.0883, 4.9879)
Luminance0.1909 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8428 #4D2884
analogous
#847B28 #5F8428 #318428
triadic
#5F8428 #285F84 #84285F
tetradic
#5F8428 #28847B #4D2884 #842831
square
#5F8428 #28847B #4D2884 #842831
split-complementary
#5F8428 #283184 #7B2884
monochromatic
#1B260C #3D551A #5F8428 #81B336 #9ECD5A

Accessibility & contrast

On white

4.36
#5F8428 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5F8428 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8428
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8428#FFFFFF#000000##000000
##5F84281.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B1B
Deuteranopia (green-blind)
#857830
Tritanopia (blue-blind)
#627E71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f8428;
/* rgb */ color: rgb(95, 132, 40);
/* oklch */ color: oklch(56.6% 0.127 128.8);
Tailwind
colors: {
  custom: {
    50: '#8fa867',
    500: '#5f8428',
    950: '#000000',
  },
}
SCSS
$custom: #5f8428;
$custom-light: #8fa867;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8428",
  "rgb": {
    "r": 95,
    "g": 132,
    "b": 40
  },
  "hsl": {
    "h": 84.13,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56628,
    "c": 0.1269,
    "h": 128.8
  },
  "luminance": 0.19089
}

Semantic roles & 50–950 ramp

primary
#5F8428
secondary
#7B56B2
accent
#4BDD86
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F8428

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

Preview Lab → · Contrast checker → · Palette generator →

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