#2F5915#2F5915

#2F5915 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.108 H 136.0°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2F5915
RGBrgb(47, 89, 21)
HSLhsl(97, 62%, 22%)
HSVhsv(97, 76%, 35%)
CMYKcmyk(47.2%, 0%, 76.4%, 65.1%)
CIE-LABlab(33.57, -27.82, 33.06)
CIE-LCHlch(33.57, 43.21, 130.08°)
OKLaboklab(41.8% -0.0774 0.0748)
OKLCHoklch(41.8% 0.108 136)
XYZxyz(4.8799, 7.8029, 1.9583)
Luminance0.0780 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5915 #3F1559
analogous
#515915 #2F5915 #15591D
triadic
#2F5915 #152F59 #59152F
tetradic
#2F5915 #155159 #3F1559 #591D15
square
#2F5915 #155159 #3F1559 #591D15
split-complementary
#2F5915 #1D1559 #591551
monochromatic
#0D1906 #152709 #2F5915 #498B21 #63BC2C

Accessibility & contrast

On white

8.20
#2F5915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F5915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5915
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5915#FFFFFF#000000##FFFFFF
##2F59151.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510A
Deuteranopia (green-blind)
#574E1B
Tritanopia (blue-blind)
#2D554C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f5915;
/* rgb */ color: rgb(47, 89, 21);
/* oklch */ color: oklch(41.8% 0.108 136.0);
Tailwind
colors: {
  custom: {
    50: '#6c8857',
    500: '#2f5915',
    950: '#000000',
  },
}
SCSS
$custom: #2f5915;
$custom-light: #6c8857;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5915",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 21
  },
  "hsl": {
    "h": 97.059,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.418,
    "c": 0.10767,
    "h": 136
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

primary
#2F5915
secondary
#6F3991
accent
#43E5A7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5915

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

Preview Lab → · Contrast checker → · Palette generator →

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