#5F7D1C#5F7D1C

#5F7D1C is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.126 H 125.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5F7D1C
RGBrgb(95, 125, 28)
HSLhsl(79, 63%, 30%)
HSVhsv(79, 78%, 49%)
CMYKcmyk(24%, 0%, 77.6%, 51%)
CIE-LABlab(48.49, -25.33, 46.01)
CIE-LCHlch(48.49, 52.52, 118.83°)
OKLaboklab(54.74% -0.0733 0.1021)
OKLCHoklch(54.74% 0.126 125.7)
XYZxyz(12.2626, 17.1838, 3.7691)
Luminance0.1718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D1C #3A1C7D
analogous
#7D6B1C #5F7D1C #2E7D1C
triadic
#5F7D1C #1C5F7D #7D1C5F
tetradic
#5F7D1C #1C7D6B #3A1C7D #7D1C2E
square
#5F7D1C #1C7D6B #3A1C7D #7D1C2E
split-complementary
#5F7D1C #1C2E7D #6B1C7D
monochromatic
#131906 #394B11 #5F7D1C #85AF27 #A6D43F

Accessibility & contrast

On white

4.73
#5F7D1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5F7D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7D1C
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7D1C#FFFFFF#000000##FFFFFF
##5F7D1C1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847406
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#63776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d1c;
/* rgb */ color: rgb(95, 125, 28);
/* oklch */ color: oklch(54.7% 0.126 125.7);
Tailwind
colors: {
  custom: {
    50: '#90a260',
    500: '#5f7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d1c;
$custom-light: #90a260;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d1c",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 78.557,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.54736,
    "c": 0.12569,
    "h": 125.7
  },
  "luminance": 0.17184
}

Semantic roles & 50–950 ramp

primary
#5F7D1C
secondary
#6644B1
accent
#41E674
background
#F9FAF5
surface
#F1F3EA
border
#CBCDC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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