#2D5F12#2D5F12

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

Color values

HEX#2D5F12
RGBrgb(45, 95, 18)
HSLhsl(99, 68%, 22%)
HSVhsv(99, 81%, 37%)
CMYKcmyk(52.6%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.57, -31.45, 36.23)
CIE-LCHlch(35.57, 47.98, 130.96°)
OKLaboklab(43.41% -0.0873 0.081)
OKLCHoklch(43.41% 0.119 137.1)
XYZxyz(5.2834, 8.7856, 1.9895)
Luminance0.0879 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5F12 #44125F
analogous
#545F12 #2D5F12 #125F1D
triadic
#2D5F12 #122D5F #5F122D
tetradic
#2D5F12 #12545F #44125F #5F1D12
square
#2D5F12 #12545F #44125F #5F1D12
split-complementary
#2D5F12 #1D125F #5F1254
monochromatic
#0C1A05 #152C08 #2D5F12 #45921C #5EC625

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5F12#FFFFFF#000000##FFFFFF
##2D5F121.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)
#625602
Deuteranopia (green-blind)
#5C521A
Tritanopia (blue-blind)
#2A5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d5f12;
/* rgb */ color: rgb(45, 95, 18);
/* oklch */ color: oklch(43.4% 0.119 137.1);
Tailwind
colors: {
  custom: {
    50: '#6c8d56',
    500: '#2d5f12',
    950: '#000000',
  },
}
SCSS
$custom: #2d5f12;
$custom-light: #6c8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5f12",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 98.961,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.4341,
    "c": 0.1191,
    "h": 137.1
  },
  "luminance": 0.08786
}

Semantic roles & 50–950 ramp

primary
#2D5F12
secondary
#753697
accent
#3DEBAE
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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