#2F5215#2F5215

#2F5215 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.097 H 134.5°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2F5215
RGBrgb(47, 82, 21)
HSLhsl(94, 59%, 20%)
HSVhsv(94, 74%, 32%)
CMYKcmyk(42.7%, 0%, 74.4%, 67.8%)
CIE-LABlab(31.10, -24.50, 30.51)
CIE-LCHlch(31.10, 39.13, 128.77°)
OKLaboklab(39.78% -0.0684 0.0695)
OKLCHoklch(39.78% 0.097 134.5)
XYZxyz(4.3249, 6.6929, 1.7733)
Luminance0.0669 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5215 #381552
analogous
#4D5215 #2F5215 #155219
triadic
#2F5215 #152F52 #52152F
tetradic
#2F5215 #154D52 #381552 #521915
square
#2F5215 #154D52 #381552 #521915
split-complementary
#2F5215 #191552 #52154D
monochromatic
#0E1806 #132109 #2F5215 #4B8321 #67B32E

Accessibility & contrast

On white

8.98
#2F5215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F5215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5215
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5215#FFFFFF#000000##FFFFFF
##2F52151.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0C
Deuteranopia (green-blind)
#51481A
Tritanopia (blue-blind)
#2F4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f5215;
/* rgb */ color: rgb(47, 82, 21);
/* oklch */ color: oklch(39.8% 0.097 134.5);
Tailwind
colors: {
  custom: {
    50: '#6b8356',
    500: '#2f5215',
    950: '#000000',
  },
}
SCSS
$custom: #2f5215;
$custom-light: #6b8356;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5215",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 94.426,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39777,
    "c": 0.09749,
    "h": 134.5
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#2F5215
secondary
#67398A
accent
#45E29F
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5215

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

Preview Lab → · Contrast checker → · Palette generator →

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