#2F5115#2F5115

#2F5115 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.5% C 0.096 H 134.3°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2F5115
RGBrgb(47, 81, 21)
HSLhsl(94, 59%, 20%)
HSVhsv(94, 74%, 32%)
CMYKcmyk(42%, 0%, 74.1%, 68.2%)
CIE-LABlab(30.74, -24.01, 30.14)
CIE-LCHlch(30.74, 38.53, 128.55°)
OKLaboklab(39.49% -0.0671 0.0687)
OKLCHoklch(39.49% 0.096 134.3)
XYZxyz(4.2500, 6.5431, 1.7483)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5115 #371551
analogous
#4D5115 #2F5115 #155119
triadic
#2F5115 #152F51 #51152F
tetradic
#2F5115 #154D51 #371551 #511915
square
#2F5115 #154D51 #371551 #511915
split-complementary
#2F5115 #191551 #51154D
monochromatic
#0E1806 #132008 #2F5115 #4B8222 #67B22E

Accessibility & contrast

On white

9.10
#2F5115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F5115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5115
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5115#FFFFFF#000000##FFFFFF
##2F51151.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0C
Deuteranopia (green-blind)
#50471A
Tritanopia (blue-blind)
#2F4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5115;
/* rgb */ color: rgb(47, 81, 21);
/* oklch */ color: oklch(39.5% 0.096 134.3);
Tailwind
colors: {
  custom: {
    50: '#6b8256',
    500: '#2f5115',
    950: '#000000',
  },
}
SCSS
$custom: #2f5115;
$custom-light: #6b8256;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5115",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 94,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.39487,
    "c": 0.096,
    "h": 134.3
  },
  "luminance": 0.06543
}

Semantic roles & 50–950 ramp

primary
#2F5115
secondary
#663989
accent
#46E29E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5115

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

Preview Lab → · Contrast checker → · Palette generator →

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