#2F6211#2F6211

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

Color values

HEX#2F6211
RGBrgb(47, 98, 17)
HSLhsl(98, 70%, 23%)
HSVhsv(98, 83%, 38%)
CMYKcmyk(52%, 0%, 82.7%, 61.6%)
CIE-LABlab(36.71, -32.15, 37.72)
CIE-LCHlch(36.71, 49.56, 130.44°)
OKLaboklab(44.37% -0.0894 0.0839)
OKLCHoklch(44.37% 0.123 136.8)
XYZxyz(5.6410, 9.3798, 2.0434)
Luminance0.0938 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6211 #441162
analogous
#576211 #2F6211 #11621C
triadic
#2F6211 #112F62 #62112F
tetradic
#2F6211 #115762 #441162 #621C11
square
#2F6211 #115762 #441162 #621C11
split-complementary
#2F6211 #1C1162 #621157
monochromatic
#0D1A05 #162E08 #2F6211 #48961A #61CA23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F6211#FFFFFF#000000##FFFFFF
##2F62111.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)
#665900
Deuteranopia (green-blind)
#5F551A
Tritanopia (blue-blind)
#2C5E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f6211;
/* rgb */ color: rgb(47, 98, 17);
/* oklch */ color: oklch(44.4% 0.123 136.8);
Tailwind
colors: {
  custom: {
    50: '#6d8f56',
    500: '#2f6211',
    950: '#000000',
  },
}
SCSS
$custom: #2f6211;
$custom-light: #6d8f56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6211",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 17
  },
  "hsl": {
    "h": 97.778,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.12259,
    "h": 136.8
  },
  "luminance": 0.0938
}

Semantic roles & 50–950 ramp

primary
#2F6211
secondary
#75349A
accent
#3BEDAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F6211

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

Preview Lab → · Contrast checker → · Palette generator →

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