#2F5F12#2F5F12

#2F5F12 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.5% C 0.118 H 136.5°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2F5F12
RGBrgb(47, 95, 18)
HSLhsl(97, 68%, 22%)
HSVhsv(97, 81%, 37%)
CMYKcmyk(50.5%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.66, -30.77, 36.35)
CIE-LCHlch(35.66, 47.62, 130.24°)
OKLaboklab(43.51% -0.0856 0.0812)
OKLCHoklch(43.51% 0.118 136.5)
XYZxyz(5.3735, 8.8321, 1.9938)
Luminance0.0883 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F12 #42125F
analogous
#565F12 #2F5F12 #125F1C
triadic
#2F5F12 #122F5F #5F122F
tetradic
#2F5F12 #12565F #42125F #5F1C12
square
#2F5F12 #12565F #42125F #5F1C12
split-complementary
#2F5F12 #1C125F #5F1256
monochromatic
#0D1A05 #162C08 #2F5F12 #48921C #62C625

Accessibility & contrast

On white

7.59
#2F5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5F12
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F12#FFFFFF#000000##FFFFFF
##2F5F121.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635602
Deuteranopia (green-blind)
#5C521A
Tritanopia (blue-blind)
#2D5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5f12;
/* rgb */ color: rgb(47, 95, 18);
/* oklch */ color: oklch(43.5% 0.118 136.5);
Tailwind
colors: {
  custom: {
    50: '#6d8d56',
    500: '#2f5f12',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f12;
$custom-light: #6d8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f12",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 97.403,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43509,
    "c": 0.11799,
    "h": 136.5
  },
  "luminance": 0.08832
}

Semantic roles & 50–950 ramp

primary
#2F5F12
secondary
#723697
accent
#3DEBA9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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