#2D5114#2D5114

#2D5114 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.098 H 135.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2D5114
RGBrgb(45, 81, 20)
HSLhsl(95, 60%, 20%)
HSVhsv(95, 75%, 32%)
CMYKcmyk(44.4%, 0%, 75.3%, 68.2%)
CIE-LABlab(30.62, -24.89, 30.43)
CIE-LCHlch(30.62, 39.31, 129.27°)
OKLaboklab(39.36% -0.0694 0.0692)
OKLCHoklch(39.36% 0.098 135.1)
XYZxyz(4.1508, 6.4930, 1.6963)
Luminance0.0649 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5114 #381451
analogous
#4C5114 #2D5114 #14511A
triadic
#2D5114 #142D51 #51142D
tetradic
#2D5114 #144C51 #381451 #511A14
square
#2D5114 #144C51 #381451 #511A14
split-complementary
#2D5114 #1A1451 #51144C
monochromatic
#0E1906 #122008 #2D5114 #488220 #64B32C

Accessibility & contrast

On white

9.14
#2D5114 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D5114 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5114
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5114#FFFFFF#000000##FFFFFF
##2D51141.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0B
Deuteranopia (green-blind)
#4F4719
Tritanopia (blue-blind)
#2C4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d5114;
/* rgb */ color: rgb(45, 81, 20);
/* oklch */ color: oklch(39.4% 0.098 135.1);
Tailwind
colors: {
  custom: {
    50: '#698255',
    500: '#2d5114',
    950: '#000000',
  },
}
SCSS
$custom: #2d5114;
$custom-light: #698255;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5114",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 20
  },
  "hsl": {
    "h": 95.41,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39357,
    "c": 0.098,
    "h": 135.1
  },
  "luminance": 0.06493
}

Semantic roles & 50–950 ramp

primary
#2D5114
secondary
#683889
accent
#44E4A2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5114

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

Preview Lab → · Contrast checker → · Palette generator →

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