#2D5812#2D5812

#2D5812 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.4% C 0.109 H 136.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2D5812
RGBrgb(45, 88, 18)
HSLhsl(97, 66%, 21%)
HSVhsv(97, 80%, 35%)
CMYKcmyk(48.9%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.09, -28.34, 33.80)
CIE-LCHlch(33.09, 44.11, 129.97°)
OKLaboklab(41.38% -0.0789 0.0759)
OKLCHoklch(41.38% 0.109 136.1)
XYZxyz(4.6810, 7.5807, 1.7887)
Luminance0.0758 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5812 #3D1258
analogous
#505812 #2D5812 #12581A
triadic
#2D5812 #122D58 #58122D
tetradic
#2D5812 #125058 #3D1258 #581A12
square
#2D5812 #125058 #3D1258 #581A12
split-complementary
#2D5812 #1A1258 #581250
monochromatic
#0D1905 #132508 #2D5812 #478B1C #61BE27

Accessibility & contrast

On white

8.35
#2D5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5812
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5812#FFFFFF#000000##FFFFFF
##2D58121.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5005
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#2B544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d5812;
/* rgb */ color: rgb(45, 88, 18);
/* oklch */ color: oklch(41.4% 0.109 136.1);
Tailwind
colors: {
  custom: {
    50: '#6b8755',
    500: '#2d5812',
    950: '#000000',
  },
}
SCSS
$custom: #2d5812;
$custom-light: #6b8755;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5812",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 96.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41376,
    "c": 0.10949,
    "h": 136.1
  },
  "luminance": 0.07581
}

Semantic roles & 50–950 ramp

primary
#2D5812
secondary
#6D3591
accent
#3FE9A7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5812

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

Preview Lab → · Contrast checker → · Palette generator →

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