#2F5715#2F5715

#2F5715 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.2% C 0.105 H 135.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2F5715
RGBrgb(47, 87, 21)
HSLhsl(96, 61%, 21%)
HSVhsv(96, 76%, 34%)
CMYKcmyk(46%, 0%, 75.9%, 65.9%)
CIE-LABlab(32.86, -26.89, 32.34)
CIE-LCHlch(32.86, 42.06, 129.75°)
OKLaboklab(41.22% -0.0749 0.0733)
OKLCHoklch(41.22% 0.105 135.6)
XYZxyz(4.7157, 7.4746, 1.9036)
Luminance0.0747 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5715 #3D1557
analogous
#505715 #2F5715 #15571C
triadic
#2F5715 #152F57 #57152F
tetradic
#2F5715 #155057 #3D1557 #571C15
square
#2F5715 #155057 #3D1557 #571C15
split-complementary
#2F5715 #1C1557 #571550
monochromatic
#0D1906 #142609 #2F5715 #4A8821 #64BA2D

Accessibility & contrast

On white

8.42
#2F5715 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F5715 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5715
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5715#FFFFFF#000000##FFFFFF
##2F57151.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0B
Deuteranopia (green-blind)
#554C1B
Tritanopia (blue-blind)
#2E544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f5715;
/* rgb */ color: rgb(47, 87, 21);
/* oklch */ color: oklch(41.2% 0.105 135.6);
Tailwind
colors: {
  custom: {
    50: '#6c8757',
    500: '#2f5715',
    950: '#000000',
  },
}
SCSS
$custom: #2f5715;
$custom-light: #6c8757;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5715",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 21
  },
  "hsl": {
    "h": 96.364,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41222,
    "c": 0.1048,
    "h": 135.6
  },
  "luminance": 0.07475
}

Semantic roles & 50–950 ramp

primary
#2F5715
secondary
#6D398F
accent
#44E4A5
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5715

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

Preview Lab → · Contrast checker → · Palette generator →

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