#2F5017#2F5017

#2F5017 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.093 H 134.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2F5017
RGBrgb(47, 80, 23)
HSLhsl(95, 55%, 20%)
HSVhsv(95, 71%, 31%)
CMYKcmyk(41.3%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.41, -23.33, 28.83)
CIE-LCHlch(30.41, 37.08, 128.98°)
OKLaboklab(39.22% -0.065 0.0662)
OKLCHoklch(39.22% 0.093 134.5)
XYZxyz(4.1955, 6.4033, 1.8253)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5017 #381750
analogous
#4B5017 #2F5017 #17501B
triadic
#2F5017 #172F50 #50172F
tetradic
#2F5017 #174B50 #381750 #501B17
square
#2F5017 #174B50 #381750 #501B17
split-complementary
#2F5017 #1B1750 #50174B
monochromatic
#0E1807 #132009 #2F5017 #4B8025 #67AF32

Accessibility & contrast

On white

9.21
#2F5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F5017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5017
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5017#FFFFFF#000000##FFFFFF
##2F50171.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#4F471C
Tritanopia (blue-blind)
#2F4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5017;
/* rgb */ color: rgb(47, 80, 23);
/* oklch */ color: oklch(39.2% 0.093 134.5);
Tailwind
colors: {
  custom: {
    50: '#6a8157',
    500: '#2f5017',
    950: '#000000',
  },
}
SCSS
$custom: #2f5017;
$custom-light: #6a8157;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5017",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 94.737,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39219,
    "c": 0.09282,
    "h": 134.5
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#2F5017
secondary
#673C87
accent
#49DFA0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5017

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

Preview Lab → · Contrast checker → · Palette generator →

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