#2E6212#2E6212

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

Color values

HEX#2E6212
RGBrgb(46, 98, 18)
HSLhsl(99, 69%, 23%)
HSVhsv(99, 82%, 38%)
CMYKcmyk(53.1%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.67, -32.42, 37.31)
CIE-LCHlch(36.67, 49.43, 130.98°)
OKLaboklab(44.33% -0.0899 0.0833)
OKLCHoklch(44.33% 0.123 137.2)
XYZxyz(5.6034, 9.3595, 2.0834)
Luminance0.0936 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E6212 #461262
analogous
#566212 #2E6212 #12621E
triadic
#2E6212 #122E62 #62122E
tetradic
#2E6212 #125662 #461262 #621E12
square
#2E6212 #125662 #461262 #621E12
split-complementary
#2E6212 #1E1262 #621256
monochromatic
#0C1A05 #162E09 #2E6212 #46961B #5FC925

Accessibility & contrast

On white

7.31
#2E6212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2E6212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E6212
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E6212#FFFFFF#000000##FFFFFF
##2E62121.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e6212;
/* rgb */ color: rgb(46, 98, 18);
/* oklch */ color: oklch(44.3% 0.123 137.2);
Tailwind
colors: {
  custom: {
    50: '#6d8f57',
    500: '#2e6212',
    950: '#000000',
  },
}
SCSS
$custom: #2e6212;
$custom-light: #6d8f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2e6212",
  "rgb": {
    "r": 46,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 99,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44326,
    "c": 0.12256,
    "h": 137.2
  },
  "luminance": 0.0936
}

Semantic roles & 50–950 ramp

primary
#2E6212
secondary
#77369A
accent
#3CECAE
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2E6212

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

Preview Lab → · Contrast checker → · Palette generator →

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