#2F5311#2F5311

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

Color values

HEX#2F5311
RGBrgb(47, 83, 17)
HSLhsl(93, 66%, 20%)
HSVhsv(93, 80%, 33%)
CMYKcmyk(43.4%, 0%, 79.5%, 67.5%)
CIE-LABlab(31.42, -25.32, 32.58)
CIE-LCHlch(31.42, 41.26, 127.85°)
OKLaboklab(40.03% -0.0709 0.0732)
OKLCHoklch(40.03% 0.102 134.1)
XYZxyz(4.3666, 6.8311, 1.6187)
Luminance0.0683 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5311 #351153
analogous
#505311 #2F5311 #115314
triadic
#2F5311 #112F53 #53112F
tetradic
#2F5311 #115053 #351153 #531411
square
#2F5311 #115053 #351153 #531411
split-complementary
#2F5311 #141153 #531150
monochromatic
#0E1905 #122007 #2F5311 #4C861B #69B926

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F5311#FFFFFF#000000##FFFFFF
##2F53111.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)
#574C05
Deuteranopia (green-blind)
#524917
Tritanopia (blue-blind)
#2F4F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f5311;
/* rgb */ color: rgb(47, 83, 17);
/* oklch */ color: oklch(40.0% 0.102 134.1);
Tailwind
colors: {
  custom: {
    50: '#6b8354',
    500: '#2f5311',
    950: '#000000',
  },
}
SCSS
$custom: #2f5311;
$custom-light: #6b8354;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5311",
  "rgb": {
    "r": 47,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 92.727,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.4003,
    "c": 0.10192,
    "h": 134.1
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#2F5311
secondary
#64348C
accent
#3FE99C
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5311

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

Preview Lab → · Contrast checker → · Palette generator →

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