#2D5F11#2D5F11

#2D5F11 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.4% C 0.120 H 137.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#2D5F11
RGBrgb(45, 95, 17)
HSLhsl(98, 70%, 22%)
HSVhsv(98, 82%, 37%)
CMYKcmyk(52.6%, 0%, 82.1%, 62.7%)
CIE-LABlab(35.56, -31.52, 36.60)
CIE-LCHlch(35.56, 48.30, 130.74°)
OKLaboklab(43.4% -0.0875 0.0816)
OKLCHoklch(43.4% 0.12 137)
XYZxyz(5.2754, 8.7824, 1.9474)
Luminance0.0878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5F11 #43115F
analogous
#545F11 #2D5F11 #115F1C
triadic
#2D5F11 #112D5F #5F112D
tetradic
#2D5F11 #11545F #43115F #5F1C11
square
#2D5F11 #11545F #43115F #5F1C11
split-complementary
#2D5F11 #1C115F #5F1154
monochromatic
#0C1A05 #142B08 #2D5F11 #46931A #5EC724

Accessibility & contrast

On white

7.62
#2D5F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2D5F11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5F11
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5F11#FFFFFF#000000##FFFFFF
##2D5F111.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625601
Deuteranopia (green-blind)
#5C521A
Tritanopia (blue-blind)
#2A5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d5f11;
/* rgb */ color: rgb(45, 95, 17);
/* oklch */ color: oklch(43.4% 0.120 137.0);
Tailwind
colors: {
  custom: {
    50: '#6c8d56',
    500: '#2d5f11',
    950: '#000000',
  },
}
SCSS
$custom: #2d5f11;
$custom-light: #6c8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5f11",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 17
  },
  "hsl": {
    "h": 98.462,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43402,
    "c": 0.11968,
    "h": 137
  },
  "luminance": 0.08783
}

Semantic roles & 50–950 ramp

primary
#2D5F11
secondary
#743498
accent
#3BECAD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D5F11

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

Preview Lab → · Contrast checker → · Palette generator →

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