#2D6012#2D6012

#2D6012 is a dark, vivid yellow-green. Relative luminance 0.090; OKLCH L 43.7% C 0.120 H 137.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2D6012
RGBrgb(45, 96, 18)
HSLhsl(99, 68%, 22%)
HSVhsv(99, 81%, 38%)
CMYKcmyk(53.1%, 0%, 81.3%, 62.4%)
CIE-LABlab(35.92, -31.89, 36.57)
CIE-LCHlch(35.92, 48.52, 131.08°)
OKLaboklab(43.7% -0.0884 0.0817)
OKLCHoklch(43.7% 0.12 137.3)
XYZxyz(5.3741, 8.9669, 2.0198)
Luminance0.0897 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6012 #451260
analogous
#546012 #2D6012 #12601E
triadic
#2D6012 #122D60 #60122D
tetradic
#2D6012 #125460 #451260 #601E12
square
#2D6012 #125460 #451260 #601E12
split-complementary
#2D6012 #1E1260 #601254
monochromatic
#0C1A05 #152C08 #2D6012 #45941C #5DC725

Accessibility & contrast

On white

7.52
#2D6012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2D6012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D6012
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6012#FFFFFF#000000##FFFFFF
##2D60121.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635702
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#2A5C51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d6012;
/* rgb */ color: rgb(45, 96, 18);
/* oklch */ color: oklch(43.7% 0.120 137.3);
Tailwind
colors: {
  custom: {
    50: '#6c8e57',
    500: '#2d6012',
    950: '#000000',
  },
}
SCSS
$custom: #2d6012;
$custom-light: #6c8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6012",
  "rgb": {
    "r": 45,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 99.231,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43699,
    "c": 0.12043,
    "h": 137.3
  },
  "luminance": 0.08967
}

Semantic roles & 50–950 ramp

primary
#2D6012
secondary
#763698
accent
#3DEBAF
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D6012

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

Preview Lab → · Contrast checker → · Palette generator →

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