#5C7B15#5C7B15

#5C7B15 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 54.0% C 0.128 H 125.9°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5C7B15
RGBrgb(92, 123, 21)
HSLhsl(78, 71%, 28%)
HSVhsv(78, 83%, 48%)
CMYKcmyk(25.2%, 0%, 82.9%, 51.8%)
CIE-LABlab(47.62, -25.97, 47.45)
CIE-LCHlch(47.62, 54.10, 118.69°)
OKLaboklab(53.96% -0.0754 0.104)
OKLCHoklch(53.96% 0.128 125.9)
XYZxyz(11.6320, 16.4952, 3.2804)
Luminance0.1650 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7B15 #34157B
analogous
#7B6715 #5C7B15 #297B15
triadic
#5C7B15 #155C7B #7B155C
tetradic
#5C7B15 #157B67 #34157B #7B1529
square
#5C7B15 #157B67 #34157B #7B1529
split-complementary
#5C7B15 #15297B #67157B
monochromatic
#141A04 #35470C #5C7B15 #83AF1E #A7DB2F

Accessibility & contrast

On white

4.88
#5C7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#5C7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7B15
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7B15#FFFFFF#000000##FFFFFF
##5C7B151.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7E7020
Tritanopia (blue-blind)
#607568
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5c7b15;
/* rgb */ color: rgb(92, 123, 21);
/* oklch */ color: oklch(54.0% 0.128 125.9);
Tailwind
colors: {
  custom: {
    50: '#8ea15d',
    500: '#5c7b15',
    950: '#000000',
  },
}
SCSS
$custom: #5c7b15;
$custom-light: #8ea15d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7b15",
  "rgb": {
    "r": 92,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 78.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53964,
    "c": 0.12847,
    "h": 125.9
  },
  "luminance": 0.16495
}

Semantic roles & 50–950 ramp

primary
#5C7B15
secondary
#5F3BB0
accent
#3AEE71
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0F05
muted
#7E7E79

Preview Lab

Preview with #5C7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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