#2F500F#2F500F

#2F500F is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.1% C 0.099 H 133.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2F500F
RGBrgb(47, 80, 15)
HSLhsl(90, 68%, 19%)
HSVhsv(90, 81%, 31%)
CMYKcmyk(41.3%, 0%, 81.3%, 68.6%)
CIE-LABlab(30.34, -24.01, 32.33)
CIE-LCHlch(30.34, 40.27, 126.60°)
OKLaboklab(39.14% -0.0676 0.0723)
OKLCHoklch(39.14% 0.099 133.1)
XYZxyz(4.1271, 6.3760, 1.4651)
Luminance0.0638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F500F #300F50
analogous
#4F500F #2F500F #0F5010
triadic
#2F500F #0F2F50 #500F2F
tetradic
#2F500F #0F4F50 #300F50 #50100F
square
#2F500F #0F4F50 #300F50 #50100F
split-complementary
#2F500F #100F50 #500F4F
monochromatic
#0F1A05 #111C05 #2F500F #4D8419 #6CB722

Accessibility & contrast

On white

9.23
#2F500F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F500F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F500F#FFFFFF#000000##FFFFFF
##2F500F1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544903
Deuteranopia (green-blind)
#4F4715
Tritanopia (blue-blind)
#2F4C44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f500f;
/* rgb */ color: rgb(47, 80, 15);
/* oklch */ color: oklch(39.1% 0.099 133.1);
Tailwind
colors: {
  custom: {
    50: '#6b8153',
    500: '#2f500f',
    950: '#000000',
  },
}
SCSS
$custom: #2f500f;
$custom-light: #6b8153;
$custom-dark: #000000;
JSON
{
  "hex": "#2f500f",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 15
  },
  "hsl": {
    "h": 90.462,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39144,
    "c": 0.09897,
    "h": 133.1
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#2F500F
secondary
#5E318A
accent
#3DEB95
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F500F

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

Preview Lab → · Contrast checker → · Palette generator →

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