#2F580F#2F580F

#2F580F is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.5% C 0.110 H 134.9°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2F580F
RGBrgb(47, 88, 15)
HSLhsl(94, 71%, 20%)
HSVhsv(94, 83%, 35%)
CMYKcmyk(46.6%, 0%, 83%, 65.5%)
CIE-LABlab(33.17, -27.81, 35.07)
CIE-LCHlch(33.17, 44.76, 128.41°)
OKLaboklab(41.46% -0.0778 0.0781)
OKLCHoklch(41.46% 0.11 134.9)
XYZxyz(4.7481, 7.6180, 1.6721)
Luminance0.0762 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F580F #380F58
analogous
#53580F #2F580F #0F5814
triadic
#2F580F #0F2F58 #580F2F
tetradic
#2F580F #0F5358 #380F58 #58140F
square
#2F580F #0F5358 #380F58 #58140F
split-complementary
#2F580F #140F58 #580F53
monochromatic
#0E1A04 #132406 #2F580F #4B8C18 #67C121

Accessibility & contrast

On white

8.32
#2F580F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F580F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F580F
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F580F#FFFFFF#000000##FFFFFF
##2F580F1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5001
Deuteranopia (green-blind)
#564D17
Tritanopia (blue-blind)
#2E544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f580f;
/* rgb */ color: rgb(47, 88, 15);
/* oklch */ color: oklch(41.5% 0.110 134.9);
Tailwind
colors: {
  custom: {
    50: '#6c8754',
    500: '#2f580f',
    950: '#000000',
  },
}
SCSS
$custom: #2f580f;
$custom-light: #6c8754;
$custom-dark: #000000;
JSON
{
  "hex": "#2f580f",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 15
  },
  "hsl": {
    "h": 93.699,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41463,
    "c": 0.11023,
    "h": 134.9
  },
  "luminance": 0.07618
}

Semantic roles & 50–950 ramp

primary
#2F580F
secondary
#673192
accent
#3AEE9F
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F580F

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

Preview Lab → · Contrast checker → · Palette generator →

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