#2F6212#2F6212

#2F6212 is a dark, vivid yellow-green. Relative luminance 0.094; OKLCH L 44.4% C 0.122 H 136.9°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#2F6212
RGBrgb(47, 98, 18)
HSLhsl(98, 69%, 23%)
HSVhsv(98, 82%, 38%)
CMYKcmyk(52%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.71, -32.08, 37.37)
CIE-LCHlch(36.71, 49.25, 130.64°)
OKLaboklab(44.38% -0.0891 0.0834)
OKLCHoklch(44.38% 0.122 136.9)
XYZxyz(5.6490, 9.3830, 2.0856)
Luminance0.0938 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6212 #451262
analogous
#576212 #2F6212 #12621D
triadic
#2F6212 #122F62 #62122F
tetradic
#2F6212 #125762 #451262 #621D12
square
#2F6212 #125762 #451262 #621D12
split-complementary
#2F6212 #1D1262 #621257
monochromatic
#0C1A05 #162E09 #2F6212 #48961B #61C925

Accessibility & contrast

On white

7.30
#2F6212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2F6212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6212
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6212#FFFFFF#000000##FFFFFF
##2F62121.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665901
Deuteranopia (green-blind)
#5F551B
Tritanopia (blue-blind)
#2C5E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f6212;
/* rgb */ color: rgb(47, 98, 18);
/* oklch */ color: oklch(44.4% 0.122 136.9);
Tailwind
colors: {
  custom: {
    50: '#6d8f57',
    500: '#2f6212',
    950: '#000000',
  },
}
SCSS
$custom: #2f6212;
$custom-light: #6d8f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6212",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 98.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44375,
    "c": 0.12202,
    "h": 136.9
  },
  "luminance": 0.09383
}

Semantic roles & 50–950 ramp

primary
#2F6212
secondary
#76369A
accent
#3CECAC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F6212

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

Preview Lab → · Contrast checker → · Palette generator →

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