#2B5112#2B5112

#2B5112 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.101 H 135.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2B5112
RGBrgb(43, 81, 18)
HSLhsl(96, 64%, 19%)
HSVhsv(96, 78%, 32%)
CMYKcmyk(46.9%, 0%, 77.8%, 68.2%)
CIE-LABlab(30.50, -25.83, 31.16)
CIE-LCHlch(30.50, 40.48, 129.65°)
OKLaboklab(39.22% -0.0719 0.0705)
OKLCHoklch(39.22% 0.101 135.6)
XYZxyz(4.0478, 6.4419, 1.6023)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5112 #381251
analogous
#4B5112 #2B5112 #125118
triadic
#2B5112 #122B51 #51122B
tetradic
#2B5112 #124B51 #381251 #511812
square
#2B5112 #124B51 #381251 #511812
split-complementary
#2B5112 #181251 #51124B
monochromatic
#0D1906 #101F07 #2B5112 #46831D #60B528

Accessibility & contrast

On white

9.18
#2B5112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2B5112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5112
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5112#FFFFFF#000000##FFFFFF
##2B51121.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A08
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#2A4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b5112;
/* rgb */ color: rgb(43, 81, 18);
/* oklch */ color: oklch(39.2% 0.101 135.6);
Tailwind
colors: {
  custom: {
    50: '#688254',
    500: '#2b5112',
    950: '#000000',
  },
}
SCSS
$custom: #2b5112;
$custom-light: #688254;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5112",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 96.19,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39222,
    "c": 0.1007,
    "h": 135.6
  },
  "luminance": 0.06442
}

Semantic roles & 50–950 ramp

primary
#2B5112
secondary
#68358A
accent
#41E7A5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5112

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

Preview Lab → · Contrast checker → · Palette generator →

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