#2F6215#2F6215

#2F6215 is a dark, vivid yellow-green. Relative luminance 0.094; OKLCH L 44.4% C 0.120 H 137.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2F6215
RGBrgb(47, 98, 21)
HSLhsl(100, 65%, 23%)
HSVhsv(100, 79%, 38%)
CMYKcmyk(52%, 0%, 78.6%, 61.6%)
CIE-LABlab(36.73, -31.86, 36.25)
CIE-LCHlch(36.73, 48.26, 131.31°)
OKLaboklab(44.4% -0.0883 0.0815)
OKLCHoklch(44.4% 0.12 137.3)
XYZxyz(5.6752, 9.3935, 2.2234)
Luminance0.0939 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6215 #481562
analogous
#556215 #2F6215 #156221
triadic
#2F6215 #152F62 #62152F
tetradic
#2F6215 #155562 #481562 #622115
square
#2F6215 #155562 #481562 #622115
split-complementary
#2F6215 #211562 #621555
monochromatic
#0C1905 #17300A #2F6215 #479420 #5FC72B

Accessibility & contrast

On white

7.29
#2F6215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2F6215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6215
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6215#FFFFFF#000000##FFFFFF
##2F62151.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655906
Deuteranopia (green-blind)
#5F551D
Tritanopia (blue-blind)
#2C5E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f6215;
/* rgb */ color: rgb(47, 98, 21);
/* oklch */ color: oklch(44.4% 0.120 137.3);
Tailwind
colors: {
  custom: {
    50: '#6d8f58',
    500: '#2f6215',
    950: '#000000',
  },
}
SCSS
$custom: #2f6215;
$custom-light: #6d8f58;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6215",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 21
  },
  "hsl": {
    "h": 99.74,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.44397,
    "c": 0.12018,
    "h": 137.3
  },
  "luminance": 0.09394
}

Semantic roles & 50–950 ramp

primary
#2F6215
secondary
#793A99
accent
#40E8AF
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2F6215

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

Preview Lab → · Contrast checker → · Palette generator →

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