#5D7E12#5D7E12

#5D7E12 is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.8% C 0.133 H 126.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5D7E12
RGBrgb(93, 126, 18)
HSLhsl(78, 75%, 28%)
HSVhsv(78, 86%, 49%)
CMYKcmyk(26.2%, 0%, 85.7%, 50.6%)
CIE-LABlab(48.63, -27.14, 49.24)
CIE-LCHlch(48.63, 56.22, 118.87°)
OKLaboklab(54.8% -0.0789 0.1073)
OKLCHoklch(54.8% 0.133 126.3)
XYZxyz(12.0843, 17.2923, 3.2732)
Luminance0.1729 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7E12 #33127E
analogous
#7E6912 #5D7E12 #277E12
triadic
#5D7E12 #125D7E #7E125D
tetradic
#5D7E12 #127E69 #33127E #7E1227
square
#5D7E12 #127E69 #33127E #7E1227
split-complementary
#5D7E12 #12277E #69127E
monochromatic
#141B04 #35480A #5D7E12 #85B41A #A9E12A

Accessibility & contrast

On white

4.71
#5D7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#5D7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7E12
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7E12#FFFFFF#000000##FFFFFF
##5D7E121.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#81731F
Tritanopia (blue-blind)
#61786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5d7e12;
/* rgb */ color: rgb(93, 126, 18);
/* oklch */ color: oklch(54.8% 0.133 126.3);
Tailwind
colors: {
  custom: {
    50: '#8fa35c',
    500: '#5d7e12',
    950: '#000000',
  },
}
SCSS
$custom: #5d7e12;
$custom-light: #8fa35c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7e12",
  "rgb": {
    "r": 93,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 78.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54796,
    "c": 0.13312,
    "h": 126.3
  },
  "luminance": 0.17293
}

Semantic roles & 50–950 ramp

primary
#5D7E12
secondary
#5E38B4
accent
#36F26F
background
#F9FAF5
surface
#F1F3E9
border
#CBCDC5
text
#0D0F04
muted
#7E7F79

Preview Lab

Preview with #5D7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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