#5F7C18#5F7C18

#5F7C18 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.5% C 0.127 H 125.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5F7C18
RGBrgb(95, 124, 24)
HSLhsl(77, 68%, 29%)
HSVhsv(77, 81%, 49%)
CMYKcmyk(23.4%, 0%, 80.6%, 51.4%)
CIE-LABlab(48.15, -25.04, 47.06)
CIE-LCHlch(48.15, 53.31, 118.02°)
OKLaboklab(54.45% -0.0729 0.1036)
OKLCHoklch(54.45% 0.127 125.1)
XYZxyz(12.0919, 16.9140, 3.4917)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7C18 #35187C
analogous
#7C6718 #5F7C18 #2D7C18
triadic
#5F7C18 #185F7C #7C185F
tetradic
#5F7C18 #187C67 #35187C #7C182D
square
#5F7C18 #187C67 #35187C #7C182D
split-complementary
#5F7C18 #182D7C #67187C
monochromatic
#141A05 #38490E #5F7C18 #86AF22 #A9D836

Accessibility & contrast

On white

4.79
#5F7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5F7C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7C18
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7C18#FFFFFF#000000##FFFFFF
##5F7C181.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7F7222
Tritanopia (blue-blind)
#647669
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f7c18;
/* rgb */ color: rgb(95, 124, 24);
/* oklch */ color: oklch(54.5% 0.127 125.1);
Tailwind
colors: {
  custom: {
    50: '#90a25e',
    500: '#5f7c18',
    950: '#000000',
  },
}
SCSS
$custom: #5f7c18;
$custom-light: #90a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7c18",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 77.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54454,
    "c": 0.12666,
    "h": 125.1
  },
  "luminance": 0.16914
}

Semantic roles & 50–950 ramp

primary
#5F7C18
secondary
#603FB1
accent
#3DEA70
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0F05
muted
#7E7E79

Preview Lab

Preview with #5F7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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