#5C7818#5C7818

#5C7818 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.2% C 0.123 H 125.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5C7818
RGBrgb(92, 120, 24)
HSLhsl(78, 67%, 28%)
HSVhsv(78, 80%, 47%)
CMYKcmyk(23.3%, 0%, 80%, 52.9%)
CIE-LABlab(46.68, -24.34, 45.62)
CIE-LCHlch(46.68, 51.71, 118.08°)
OKLaboklab(53.21% -0.0707 0.1007)
OKLCHoklch(53.21% 0.123 125.1)
XYZxyz(11.2951, 15.7741, 3.3136)
Luminance0.1577 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7818 #341878
analogous
#786418 #5C7818 #2C7818
triadic
#5C7818 #185C78 #78185C
tetradic
#5C7818 #187864 #341878 #78182C
square
#5C7818 #187864 #341878 #78182C
split-complementary
#5C7818 #182C78 #641878
monochromatic
#141A05 #35450E #5C7818 #83AB22 #A7D634

Accessibility & contrast

On white

5.05
#5C7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5C7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7818
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7818#FFFFFF#000000##FFFFFF
##5C78181.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7001
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#617266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5c7818;
/* rgb */ color: rgb(92, 120, 24);
/* oklch */ color: oklch(53.2% 0.123 125.1);
Tailwind
colors: {
  custom: {
    50: '#8d9f5e',
    500: '#5c7818',
    950: '#000000',
  },
}
SCSS
$custom: #5c7818;
$custom-light: #8d9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7818",
  "rgb": {
    "r": 92,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 77.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53206,
    "c": 0.12304,
    "h": 125.1
  },
  "luminance": 0.15774
}

Semantic roles & 50–950 ramp

primary
#5C7818
secondary
#5F3FAD
accent
#3EEA70
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5C7818

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

Preview Lab → · Contrast checker → · Palette generator →

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