#2F5315#2F5315

#2F5315 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.1% C 0.099 H 134.8°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#2F5315
RGBrgb(47, 83, 21)
HSLhsl(95, 60%, 20%)
HSVhsv(95, 75%, 33%)
CMYKcmyk(43.4%, 0%, 74.7%, 67.5%)
CIE-LABlab(31.45, -24.99, 30.88)
CIE-LCHlch(31.45, 39.72, 128.98°)
OKLaboklab(40.07% -0.0697 0.0703)
OKLCHoklch(40.07% 0.099 134.8)
XYZxyz(4.4008, 6.8448, 1.7986)
Luminance0.0684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5315 #391553
analogous
#4E5315 #2F5315 #15531A
triadic
#2F5315 #152F53 #53152F
tetradic
#2F5315 #154E53 #391553 #531A15
square
#2F5315 #154E53 #391553 #531A15
split-complementary
#2F5315 #1A1553 #53154E
monochromatic
#0E1806 #132209 #2F5315 #4B8421 #66B52E

Accessibility & contrast

On white

8.86
#2F5315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F5315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5315
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5315#FFFFFF#000000##FFFFFF
##2F53151.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0C
Deuteranopia (green-blind)
#51491B
Tritanopia (blue-blind)
#2E5047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f5315;
/* rgb */ color: rgb(47, 83, 21);
/* oklch */ color: oklch(40.1% 0.099 134.8);
Tailwind
colors: {
  custom: {
    50: '#6b8356',
    500: '#2f5315',
    950: '#000000',
  },
}
SCSS
$custom: #2f5315;
$custom-light: #6b8356;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5315",
  "rgb": {
    "r": 47,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 94.839,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40066,
    "c": 0.09897,
    "h": 134.8
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#2F5315
secondary
#68398B
accent
#45E3A1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5315

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

Preview Lab → · Contrast checker → · Palette generator →

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