#5D7218#5D7218

#5D7218 is a mid, moderate yellow-green. Relative luminance 0.144; OKLCH L 51.7% C 0.115 H 122.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5D7218
RGBrgb(93, 114, 24)
HSLhsl(74, 65%, 27%)
HSVhsv(74, 79%, 45%)
CMYKcmyk(18.4%, 0%, 78.9%, 55.3%)
CIE-LABlab(44.84, -20.84, 43.92)
CIE-LCHlch(44.84, 48.62, 115.38°)
OKLaboklab(51.74% -0.0612 0.0971)
OKLCHoklch(51.74% 0.115 122.3)
XYZxyz(10.6965, 14.4277, 3.0853)
Luminance0.1443 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7218 #2D1872
analogous
#725A18 #5D7218 #307218
triadic
#5D7218 #185D72 #72185D
tetradic
#5D7218 #18725A #2D1872 #721830
square
#5D7218 #18725A #2D1872 #721830
split-complementary
#5D7218 #183072 #5A1872
monochromatic
#151905 #343F0D #5D7218 #86A523 #AED431

Accessibility & contrast

On white

5.40
#5D7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5D7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7218
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7218#FFFFFF#000000##FFFFFF
##5D72181.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B04
Deuteranopia (green-blind)
#776A20
Tritanopia (blue-blind)
#626C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5d7218;
/* rgb */ color: rgb(93, 114, 24);
/* oklch */ color: oklch(51.7% 0.115 122.3);
Tailwind
colors: {
  custom: {
    50: '#8e9a5d',
    500: '#5d7218',
    950: '#000000',
  },
}
SCSS
$custom: #5d7218;
$custom-light: #8e9a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7218",
  "rgb": {
    "r": 93,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 74,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.51739,
    "c": 0.11476,
    "h": 122.3
  },
  "luminance": 0.14428
}

Semantic roles & 50–950 ramp

primary
#5D7218
secondary
#573EA7
accent
#40E867
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E04
muted
#7D7E79

Preview Lab

Preview with #5D7218

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

Preview Lab → · Contrast checker → · Palette generator →

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