#2F6815#2F6815

#2F6815 is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.1% C 0.128 H 138.0°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#2F6815
RGBrgb(47, 104, 21)
HSLhsl(101, 66%, 25%)
HSVhsv(101, 80%, 41%)
CMYKcmyk(54.8%, 0%, 79.8%, 59.2%)
CIE-LABlab(38.83, -34.43, 38.32)
CIE-LCHlch(38.83, 51.51, 131.94°)
OKLaboklab(46.12% -0.0952 0.0858)
OKLCHoklch(46.12% 0.128 138)
XYZxyz(6.2577, 10.5586, 2.4176)
Luminance0.1056 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6815 #4E1568
analogous
#596815 #2F6815 #156825
triadic
#2F6815 #152F68 #68152F
tetradic
#2F6815 #155968 #4E1568 #682515
square
#2F6815 #155968 #4E1568 #682515
split-complementary
#2F6815 #251568 #681559
monochromatic
#0C1905 #18350B #2F6815 #469B1F #5DCE2A

Accessibility & contrast

On white

6.75
#2F6815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F6815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6815
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6815#FFFFFF#000000##FFFFFF
##2F68151.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5E04
Deuteranopia (green-blind)
#645A1E
Tritanopia (blue-blind)
#2B6458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f6815;
/* rgb */ color: rgb(47, 104, 21);
/* oklch */ color: oklch(46.1% 0.128 138.0);
Tailwind
colors: {
  custom: {
    50: '#6e9459',
    500: '#2f6815',
    950: '#000000',
  },
}
SCSS
$custom: #2f6815;
$custom-light: #6e9459;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6815",
  "rgb": {
    "r": 47,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 101.205,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.46122,
    "c": 0.12819,
    "h": 138
  },
  "luminance": 0.10559
}

Semantic roles & 50–950 ramp

primary
#2F6815
secondary
#7F3A9F
accent
#3EE9B4
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2F6815

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

Preview Lab → · Contrast checker → · Palette generator →

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