#2D5213#2D5213

#2D5213 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.100 H 135.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2D5213
RGBrgb(45, 82, 19)
HSLhsl(95, 62%, 20%)
HSVhsv(95, 77%, 32%)
CMYKcmyk(45.1%, 0%, 76.8%, 67.8%)
CIE-LABlab(30.97, -25.46, 31.24)
CIE-LCHlch(30.97, 40.30, 129.17°)
OKLaboklab(39.64% -0.071 0.0707)
OKLCHoklch(39.64% 0.1 135.1)
XYZxyz(4.2169, 6.6393, 1.6753)
Luminance0.0664 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5213 #381352
analogous
#4D5213 #2D5213 #135219
triadic
#2D5213 #132D52 #52132D
tetradic
#2D5213 #134D52 #381352 #521913
square
#2D5213 #134D52 #381352 #521913
split-complementary
#2D5213 #191352 #52134D
monochromatic
#0E1906 #122007 #2D5213 #48841F #64B52A

Accessibility & contrast

On white

9.02
#2D5213 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2D5213 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5213
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5213#FFFFFF#000000##FFFFFF
##2D52131.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B09
Deuteranopia (green-blind)
#504819
Tritanopia (blue-blind)
#2C4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d5213;
/* rgb */ color: rgb(45, 82, 19);
/* oklch */ color: oklch(39.6% 0.100 135.1);
Tailwind
colors: {
  custom: {
    50: '#6a8355',
    500: '#2d5213',
    950: '#000000',
  },
}
SCSS
$custom: #2d5213;
$custom-light: #6a8355;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5213",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 19
  },
  "hsl": {
    "h": 95.238,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39638,
    "c": 0.10023,
    "h": 135.1
  },
  "luminance": 0.06639
}

Semantic roles & 50–950 ramp

primary
#2D5213
secondary
#68368A
accent
#42E5A2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5213

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

Preview Lab → · Contrast checker → · Palette generator →

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