#2F5515#2F5515

#2F5515 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.6% C 0.102 H 135.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2F5515
RGBrgb(47, 85, 21)
HSLhsl(96, 60%, 21%)
HSVhsv(96, 75%, 33%)
CMYKcmyk(44.7%, 0%, 75.3%, 66.7%)
CIE-LABlab(32.16, -25.95, 31.61)
CIE-LCHlch(32.16, 40.90, 129.38°)
OKLaboklab(40.64% -0.0723 0.0718)
OKLCHoklch(40.64% 0.102 135.2)
XYZxyz(4.5560, 7.1552, 1.8504)
Luminance0.0716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5515 #3B1555
analogous
#4F5515 #2F5515 #15551B
triadic
#2F5515 #152F55 #55152F
tetradic
#2F5515 #154F55 #3B1555 #551B15
square
#2F5515 #154F55 #3B1555 #551B15
split-complementary
#2F5515 #1B1555 #55154F
monochromatic
#0E1906 #142409 #2F5515 #4A8621 #65B72D

Accessibility & contrast

On white

8.64
#2F5515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F5515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5515
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5515#FFFFFF#000000##FFFFFF
##2F55151.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E0B
Deuteranopia (green-blind)
#534A1B
Tritanopia (blue-blind)
#2E5248
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f5515;
/* rgb */ color: rgb(47, 85, 21);
/* oklch */ color: oklch(40.6% 0.102 135.2);
Tailwind
colors: {
  custom: {
    50: '#6b8557',
    500: '#2f5515',
    950: '#000000',
  },
}
SCSS
$custom: #2f5515;
$custom-light: #6b8557;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5515",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 21
  },
  "hsl": {
    "h": 95.625,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40644,
    "c": 0.10191,
    "h": 135.2
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#2F5515
secondary
#6B398D
accent
#44E4A3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5515

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

Preview Lab → · Contrast checker → · Palette generator →

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