#2D5312#2D5312

#2D5312 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 39.9% C 0.102 H 135.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2D5312
RGBrgb(45, 83, 18)
HSLhsl(95, 64%, 20%)
HSVhsv(95, 78%, 33%)
CMYKcmyk(45.8%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.32, -26.01, 32.03)
CIE-LCHlch(31.32, 41.26, 129.09°)
OKLaboklab(39.92% -0.0726 0.0722)
OKLCHoklch(39.92% 0.102 135.2)
XYZxyz(4.2845, 6.7878, 1.6566)
Luminance0.0679 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5312 #381253
analogous
#4E5312 #2D5312 #125318
triadic
#2D5312 #122D53 #53122D
tetradic
#2D5312 #124E53 #381253 #531812
square
#2D5312 #124E53 #381253 #531812
split-complementary
#2D5312 #181253 #53124E
monochromatic
#0E1905 #122107 #2D5312 #48851D #64B828

Accessibility & contrast

On white

8.91
#2D5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5312
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5312#FFFFFF#000000##FFFFFF
##2D53121.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C07
Deuteranopia (green-blind)
#514918
Tritanopia (blue-blind)
#2C5046
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d5312;
/* rgb */ color: rgb(45, 83, 18);
/* oklch */ color: oklch(39.9% 0.102 135.2);
Tailwind
colors: {
  custom: {
    50: '#6a8455',
    500: '#2d5312',
    950: '#000000',
  },
}
SCSS
$custom: #2d5312;
$custom-light: #6a8455;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5312",
  "rgb": {
    "r": 45,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 95.077,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39921,
    "c": 0.1024,
    "h": 135.2
  },
  "luminance": 0.06788
}

Semantic roles & 50–950 ramp

primary
#2D5312
secondary
#68358C
accent
#40E7A2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5312

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

Preview Lab → · Contrast checker → · Palette generator →

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