#2F5C18#2F5C18

#2F5C18 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.110 H 137.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2F5C18
RGBrgb(47, 92, 24)
HSLhsl(100, 59%, 23%)
HSVhsv(100, 74%, 36%)
CMYKcmyk(48.9%, 0%, 73.9%, 63.9%)
CIE-LABlab(34.65, -28.94, 32.86)
CIE-LCHlch(34.65, 43.79, 131.37°)
OKLaboklab(42.69% -0.0802 0.0749)
OKLCHoklch(42.69% 0.11 137)
XYZxyz(5.1642, 8.3243, 2.1986)
Luminance0.0833 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C18 #45185C
analogous
#515C18 #2F5C18 #185C23
triadic
#2F5C18 #182F5C #5C182F
tetradic
#2F5C18 #18515C #45185C #5C2318
square
#2F5C18 #18515C #45185C #5C2318
split-complementary
#2F5C18 #23185C #5C1851
monochromatic
#0C1806 #162B0B #2F5C18 #488D25 #61BD31

Accessibility & contrast

On white

7.88
#2F5C18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F5C18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5C18
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C18#FFFFFF#000000##FFFFFF
##2F5C181.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F540E
Deuteranopia (green-blind)
#59501E
Tritanopia (blue-blind)
#2D584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5c18;
/* rgb */ color: rgb(47, 92, 24);
/* oklch */ color: oklch(42.7% 0.110 137.0);
Tailwind
colors: {
  custom: {
    50: '#6c8a59',
    500: '#2f5c18',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c18;
$custom-light: #6c8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c18",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 24
  },
  "hsl": {
    "h": 99.706,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42694,
    "c": 0.10972,
    "h": 137
  },
  "luminance": 0.08325
}

Semantic roles & 50–950 ramp

primary
#2F5C18
secondary
#763D93
accent
#46E2AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2F5C18

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

Preview Lab → · Contrast checker → · Palette generator →

#2F5C18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva