#2E5F12#2E5F12

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

Color values

HEX#2E5F12
RGBrgb(46, 95, 18)
HSLhsl(98, 68%, 22%)
HSVhsv(98, 81%, 37%)
CMYKcmyk(51.6%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.61, -31.11, 36.29)
CIE-LCHlch(35.61, 47.80, 130.61°)
OKLaboklab(43.46% -0.0864 0.0811)
OKLCHoklch(43.46% 0.119 136.8)
XYZxyz(5.3279, 8.8086, 1.9916)
Luminance0.0881 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5F12 #43125F
analogous
#555F12 #2E5F12 #125F1D
triadic
#2E5F12 #122E5F #5F122E
tetradic
#2E5F12 #12555F #43125F #5F1D12
square
#2E5F12 #12555F #43125F #5F1D12
split-complementary
#2E5F12 #1D125F #5F1255
monochromatic
#0C1A05 #152C08 #2E5F12 #47921C #60C625

Accessibility & contrast

On white

7.60
#2E5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E5F12
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5F12#FFFFFF#000000##FFFFFF
##2E5F121.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e5f12;
/* rgb */ color: rgb(46, 95, 18);
/* oklch */ color: oklch(43.5% 0.119 136.8);
Tailwind
colors: {
  custom: {
    50: '#6c8d56',
    500: '#2e5f12',
    950: '#000000',
  },
}
SCSS
$custom: #2e5f12;
$custom-light: #6c8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5f12",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 98.182,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43459,
    "c": 0.11854,
    "h": 136.8
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#2E5F12
secondary
#743697
accent
#3DEBAC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2E5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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