#2D6212#2D6212

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

Color values

HEX#2D6212
RGBrgb(45, 98, 18)
HSLhsl(100, 69%, 23%)
HSVhsv(100, 82%, 38%)
CMYKcmyk(54.1%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.62, -32.75, 37.26)
CIE-LCHlch(36.62, 49.60, 131.31°)
OKLaboklab(44.28% -0.0908 0.0832)
OKLCHoklch(44.28% 0.123 137.5)
XYZxyz(5.5589, 9.3365, 2.0814)
Luminance0.0934 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6212 #471262
analogous
#556212 #2D6212 #12621F
triadic
#2D6212 #122D62 #62122D
tetradic
#2D6212 #125562 #471262 #621F12
square
#2D6212 #125562 #471262 #621F12
split-complementary
#2D6212 #1F1262 #621255
monochromatic
#0C1A05 #152E09 #2D6212 #45961B #5CC925

Accessibility & contrast

On white

7.32
#2D6212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D6212
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6212#FFFFFF#000000##FFFFFF
##2D62121.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d6212;
/* rgb */ color: rgb(45, 98, 18);
/* oklch */ color: oklch(44.3% 0.123 137.5);
Tailwind
colors: {
  custom: {
    50: '#6c8f57',
    500: '#2d6212',
    950: '#000000',
  },
}
SCSS
$custom: #2d6212;
$custom-light: #6c8f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6212",
  "rgb": {
    "r": 45,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 99.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44279,
    "c": 0.12309,
    "h": 137.5
  },
  "luminance": 0.09337
}

Semantic roles & 50–950 ramp

primary
#2D6212
secondary
#78369A
accent
#3CECB0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D6212

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

Preview Lab → · Contrast checker → · Palette generator →

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