#2F5918#2F5918

#2F5918 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.105 H 136.5°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#2F5918
RGBrgb(47, 89, 24)
HSLhsl(99, 58%, 22%)
HSVhsv(99, 73%, 35%)
CMYKcmyk(47.2%, 0%, 73%, 65.1%)
CIE-LABlab(33.59, -27.56, 31.76)
CIE-LCHlch(33.59, 42.05, 130.95°)
OKLaboklab(41.83% -0.0764 0.0726)
OKLCHoklch(41.83% 0.105 136.5)
XYZxyz(4.9094, 7.8147, 2.1137)
Luminance0.0781 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5918 #421859
analogous
#505918 #2F5918 #185922
triadic
#2F5918 #182F59 #59182F
tetradic
#2F5918 #185059 #421859 #592218
square
#2F5918 #185059 #421859 #592218
split-complementary
#2F5918 #221859 #591850
monochromatic
#0D1806 #16290B #2F5918 #488925 #62B932

Accessibility & contrast

On white

8.19
#2F5918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F5918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5918
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5918#FFFFFF#000000##FFFFFF
##2F59181.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510F
Deuteranopia (green-blind)
#574E1E
Tritanopia (blue-blind)
#2D564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f5918;
/* rgb */ color: rgb(47, 89, 24);
/* oklch */ color: oklch(41.8% 0.105 136.5);
Tailwind
colors: {
  custom: {
    50: '#6c8859',
    500: '#2f5918',
    950: '#000000',
  },
}
SCSS
$custom: #2f5918;
$custom-light: #6c8859;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5918",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 24
  },
  "hsl": {
    "h": 98.769,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41829,
    "c": 0.10539,
    "h": 136.5
  },
  "luminance": 0.07815
}

Semantic roles & 50–950 ramp

primary
#2F5918
secondary
#723D90
accent
#47E1AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F5918

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

Preview Lab → · Contrast checker → · Palette generator →

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