#2F5D15#2F5D15

#2F5D15 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.113 H 136.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2F5D15
RGBrgb(47, 93, 21)
HSLhsl(98, 63%, 22%)
HSVhsv(98, 77%, 36%)
CMYKcmyk(49.5%, 0%, 77.4%, 63.5%)
CIE-LABlab(34.98, -29.65, 34.49)
CIE-LCHlch(34.98, 45.48, 130.68°)
OKLaboklab(42.96% -0.0824 0.0778)
OKLCHoklch(42.96% 0.113 136.6)
XYZxyz(5.2219, 8.4868, 2.0723)
Luminance0.0849 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5D15 #43155D
analogous
#535D15 #2F5D15 #155D1F
triadic
#2F5D15 #152F5D #5D152F
tetradic
#2F5D15 #15535D #43155D #5D1F15
square
#2F5D15 #15535D #43155D #5D1F15
split-complementary
#2F5D15 #1F155D #5D1553
monochromatic
#0D1906 #162B0A #2F5D15 #488F20 #61C12C

Accessibility & contrast

On white

7.79
#2F5D15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F5D15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5D15
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5D15#FFFFFF#000000##FFFFFF
##2F5D151.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605508
Deuteranopia (green-blind)
#5A511C
Tritanopia (blue-blind)
#2D594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5d15;
/* rgb */ color: rgb(47, 93, 21);
/* oklch */ color: oklch(43.0% 0.113 136.6);
Tailwind
colors: {
  custom: {
    50: '#6c8b58',
    500: '#2f5d15',
    950: '#000000',
  },
}
SCSS
$custom: #2f5d15;
$custom-light: #6c8b58;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5d15",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 21
  },
  "hsl": {
    "h": 98.333,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42956,
    "c": 0.11331,
    "h": 136.6
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#2F5D15
secondary
#743994
accent
#42E6AB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5D15

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

Preview Lab → · Contrast checker → · Palette generator →

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