#2E6512#2E6512

#2E6512 is a mid, vivid yellow-green. Relative luminance 0.099; OKLCH L 45.2% C 0.127 H 137.6°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2E6512
RGBrgb(46, 101, 18)
HSLhsl(100, 70%, 23%)
HSVhsv(100, 82%, 40%)
CMYKcmyk(54.5%, 0%, 82.2%, 60.4%)
CIE-LABlab(37.72, -33.69, 38.32)
CIE-LCHlch(37.72, 51.03, 131.32°)
OKLaboklab(45.19% -0.0934 0.0854)
OKLCHoklch(45.19% 0.127 137.6)
XYZxyz(5.8894, 9.9314, 2.1788)
Luminance0.0993 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E6512 #491265
analogous
#576512 #2E6512 #12651F
triadic
#2E6512 #122E65 #65122E
tetradic
#2E6512 #125765 #491265 #651F12
square
#2E6512 #125765 #491265 #651F12
split-complementary
#2E6512 #1F1265 #651257
monochromatic
#0C1A05 #163109 #2E6512 #46991B #5DCD25

Accessibility & contrast

On white

7.03
#2E6512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2E6512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E6512
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E6512#FFFFFF#000000##FFFFFF
##2E65121.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#61571B
Tritanopia (blue-blind)
#2A6155
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e6512;
/* rgb */ color: rgb(46, 101, 18);
/* oklch */ color: oklch(45.2% 0.127 137.6);
Tailwind
colors: {
  custom: {
    50: '#6d9157',
    500: '#2e6512',
    950: '#000000',
  },
}
SCSS
$custom: #2e6512;
$custom-light: #6d9157;
$custom-dark: #000000;
JSON
{
  "hex": "#2e6512",
  "rgb": {
    "r": 46,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 99.759,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45192,
    "c": 0.12652,
    "h": 137.6
  },
  "luminance": 0.09932
}

Semantic roles & 50–950 ramp

primary
#2E6512
secondary
#7A369D
accent
#3BEDB1
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #2E6512

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

Preview Lab → · Contrast checker → · Palette generator →

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