#5C7918#5C7918

#5C7918 is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.5% C 0.124 H 125.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5C7918
RGBrgb(92, 121, 24)
HSLhsl(78, 67%, 28%)
HSVhsv(78, 80%, 47%)
CMYKcmyk(24%, 0%, 80.2%, 52.5%)
CIE-LABlab(47.00, -24.84, 45.92)
CIE-LCHlch(47.00, 52.20, 118.41°)
OKLaboklab(53.47% -0.0721 0.1013)
OKLCHoklch(53.47% 0.124 125.5)
XYZxyz(11.4160, 16.0158, 3.3539)
Luminance0.1602 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7918 #351879
analogous
#796518 #5C7918 #2B7918
triadic
#5C7918 #185C79 #79185C
tetradic
#5C7918 #187965 #351879 #79182B
square
#5C7918 #187965 #351879 #79182B
split-complementary
#5C7918 #182B79 #651879
monochromatic
#131A05 #35460E #5C7918 #83AC22 #A6D735

Accessibility & contrast

On white

5.00
#5C7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5C7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7918
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7918#FFFFFF#000000##FFFFFF
##5C79181.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#607367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5c7918;
/* rgb */ color: rgb(92, 121, 24);
/* oklch */ color: oklch(53.5% 0.124 125.5);
Tailwind
colors: {
  custom: {
    50: '#8d9f5e',
    500: '#5c7918',
    950: '#000000',
  },
}
SCSS
$custom: #5c7918;
$custom-light: #8d9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7918",
  "rgb": {
    "r": 92,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 77.938,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53465,
    "c": 0.12433,
    "h": 125.5
  },
  "luminance": 0.16016
}

Semantic roles & 50–950 ramp

primary
#5C7918
secondary
#603FAE
accent
#3EEA71
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5C7918

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

Preview Lab → · Contrast checker → · Palette generator →

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