#2D5C12#2D5C12

#2D5C12 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.5% C 0.115 H 136.7°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#2D5C12
RGBrgb(45, 92, 18)
HSLhsl(98, 67%, 22%)
HSVhsv(98, 80%, 36%)
CMYKcmyk(51.1%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.51, -30.14, 35.20)
CIE-LCHlch(34.51, 46.34, 130.57°)
OKLaboklab(42.54% -0.0837 0.0789)
OKLCHoklch(42.54% 0.115 136.7)
XYZxyz(5.0184, 8.2555, 1.9012)
Luminance0.0826 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5C12 #41125C
analogous
#525C12 #2D5C12 #125C1C
triadic
#2D5C12 #122D5C #5C122D
tetradic
#2D5C12 #12525C #41125C #5C1C12
square
#2D5C12 #12525C #41125C #5C1C12
split-complementary
#2D5C12 #1C125C #5C1252
monochromatic
#0D1A05 #142908 #2D5C12 #468F1C #5FC226

Accessibility & contrast

On white

7.92
#2D5C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2D5C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5C12
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5C12#FFFFFF#000000##FFFFFF
##2D5C121.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5404
Deuteranopia (green-blind)
#59501A
Tritanopia (blue-blind)
#2A584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d5c12;
/* rgb */ color: rgb(45, 92, 18);
/* oklch */ color: oklch(42.5% 0.115 136.7);
Tailwind
colors: {
  custom: {
    50: '#6b8a56',
    500: '#2d5c12',
    950: '#000000',
  },
}
SCSS
$custom: #2d5c12;
$custom-light: #6b8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5c12",
  "rgb": {
    "r": 45,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 98.108,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42539,
    "c": 0.11503,
    "h": 136.7
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#2D5C12
secondary
#723594
accent
#3EEAAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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