#2D5F0F#2D5F0F

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

Color values

HEX#2D5F0F
RGBrgb(45, 95, 15)
HSLhsl(98, 73%, 22%)
HSVhsv(98, 84%, 37%)
CMYKcmyk(52.6%, 0%, 84.2%, 62.7%)
CIE-LABlab(35.55, -31.65, 37.29)
CIE-LCHlch(35.55, 48.91, 130.33°)
OKLaboklab(43.39% -0.088 0.0827)
OKLCHoklch(43.39% 0.121 136.8)
XYZxyz(5.2605, 8.7764, 1.8687)
Luminance0.0878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5F0F #410F5F
analogous
#555F0F #2D5F0F #0F5F19
triadic
#2D5F0F #0F2D5F #5F0F2D
tetradic
#2D5F0F #0F555F #410F5F #5F190F
square
#2D5F0F #0F555F #410F5F #5F190F
split-complementary
#2D5F0F #190F5F #5F0F55
monochromatic
#0D1A04 #142A07 #2D5F0F #469417 #5FC920

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5F0F#FFFFFF#000000##FFFFFF
##2D5F0F1.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)
#635600
Deuteranopia (green-blind)
#5C5218
Tritanopia (blue-blind)
#2A5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d5f0f;
/* rgb */ color: rgb(45, 95, 15);
/* oklch */ color: oklch(43.4% 0.121 136.8);
Tailwind
colors: {
  custom: {
    50: '#6c8d55',
    500: '#2d5f0f',
    950: '#000000',
  },
}
SCSS
$custom: #2d5f0f;
$custom-light: #6c8d55;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5f0f",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 97.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43389,
    "c": 0.1208,
    "h": 136.8
  },
  "luminance": 0.08777
}

Semantic roles & 50–950 ramp

primary
#2D5F0F
secondary
#723298
accent
#38EFAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D5F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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