#2F5312#2F5312

#2F5312 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.101 H 134.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2F5312
RGBrgb(47, 83, 18)
HSLhsl(93, 64%, 20%)
HSVhsv(93, 78%, 33%)
CMYKcmyk(43.4%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.43, -25.24, 32.17)
CIE-LCHlch(31.43, 40.89, 128.12°)
OKLaboklab(40.04% -0.0706 0.0725)
OKLCHoklch(40.04% 0.101 134.3)
XYZxyz(4.3746, 6.8343, 1.6608)
Luminance0.0683 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5312 #361253
analogous
#4F5312 #2F5312 #125316
triadic
#2F5312 #122F53 #53122F
tetradic
#2F5312 #124F53 #361253 #531612
square
#2F5312 #124F53 #361253 #531612
split-complementary
#2F5312 #161253 #53124F
monochromatic
#0E1905 #132107 #2F5312 #4B851D #68B828

Accessibility & contrast

On white

8.87
#2F5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5312
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5312#FFFFFF#000000##FFFFFF
##2F53121.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C07
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#2F4F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f5312;
/* rgb */ color: rgb(47, 83, 18);
/* oklch */ color: oklch(40.0% 0.101 134.3);
Tailwind
colors: {
  custom: {
    50: '#6b8355',
    500: '#2f5312',
    950: '#000000',
  },
}
SCSS
$custom: #2f5312;
$custom-light: #6b8355;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5312",
  "rgb": {
    "r": 47,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 93.231,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40038,
    "c": 0.10122,
    "h": 134.3
  },
  "luminance": 0.06835
}

Semantic roles & 50–950 ramp

primary
#2F5312
secondary
#65358C
accent
#40E79D
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5312

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

Preview Lab → · Contrast checker → · Palette generator →

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