#2F5617#2F5617

#2F5617 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 41.0% C 0.102 H 135.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2F5617
RGBrgb(47, 86, 23)
HSLhsl(97, 58%, 21%)
HSVhsv(97, 73%, 34%)
CMYKcmyk(45.3%, 0%, 73.3%, 66.3%)
CIE-LABlab(32.53, -26.24, 31.09)
CIE-LCHlch(32.53, 40.68, 130.17°)
OKLaboklab(40.95% -0.0729 0.071)
OKLCHoklch(40.95% 0.102 135.8)
XYZxyz(4.6546, 7.3215, 1.9784)
Luminance0.0732 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5617 #3E1756
analogous
#4F5617 #2F5617 #17561F
triadic
#2F5617 #172F56 #56172F
tetradic
#2F5617 #174F56 #3E1756 #561F17
square
#2F5617 #174F56 #3E1756 #561F17
split-complementary
#2F5617 #1F1756 #56174F
monochromatic
#0D1806 #15260A #2F5617 #498624 #64B731

Accessibility & contrast

On white

8.52
#2F5617 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F5617 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5617
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5617#FFFFFF#000000##FFFFFF
##2F56171.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F0E
Deuteranopia (green-blind)
#544B1D
Tritanopia (blue-blind)
#2E5349
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f5617;
/* rgb */ color: rgb(47, 86, 23);
/* oklch */ color: oklch(41.0% 0.102 135.8);
Tailwind
colors: {
  custom: {
    50: '#6b8658',
    500: '#2f5617',
    950: '#000000',
  },
}
SCSS
$custom: #2f5617;
$custom-light: #6b8658;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5617",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 23
  },
  "hsl": {
    "h": 97.143,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.40953,
    "c": 0.1018,
    "h": 135.8
  },
  "luminance": 0.07322
}

Semantic roles & 50–950 ramp

primary
#2F5617
secondary
#6E3C8D
accent
#47E1A6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5617

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

Preview Lab → · Contrast checker → · Palette generator →

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