#2D5F0C#2D5F0C

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

Color values

HEX#2D5F0C
RGBrgb(45, 95, 12)
HSLhsl(96, 78%, 21%)
HSVhsv(96, 87%, 37%)
CMYKcmyk(52.6%, 0%, 87.4%, 62.7%)
CIE-LABlab(35.53, -31.83, 38.25)
CIE-LCHlch(35.53, 49.76, 129.77°)
OKLaboklab(43.37% -0.0887 0.0843)
OKLCHoklch(43.37% 0.122 136.5)
XYZxyz(5.2406, 8.7685, 1.7641)
Luminance0.0877 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5F0C #3E0C5F
analogous
#565F0C #2D5F0C #0C5F15
triadic
#2D5F0C #0C2D5F #5F0C2D
tetradic
#2D5F0C #0C565F #3E0C5F #5F150C
square
#2D5F0C #0C565F #3E0C5F #5F150C
split-complementary
#2D5F0C #150C5F #5F0C56
monochromatic
#0D1B03 #132905 #2D5F0C #479513 #60CC1A

Accessibility & contrast

On white

7.63
#2D5F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2D5F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5F0C
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5F0C#FFFFFF#000000##FFFFFF
##2D5F0C1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d5f0c;
/* rgb */ color: rgb(45, 95, 12);
/* oklch */ color: oklch(43.4% 0.122 136.5);
Tailwind
colors: {
  custom: {
    50: '#6c8d54',
    500: '#2d5f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2d5f0c;
$custom-light: #6c8d54;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5f0c",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 96.145,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.43371,
    "c": 0.12231,
    "h": 136.5
  },
  "luminance": 0.08769
}

Semantic roles & 50–950 ramp

primary
#2D5F0C
secondary
#6E2D99
accent
#34F4A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D5F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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