#2B5012#2B5012

#2B5012 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.099 H 135.4°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2B5012
RGBrgb(43, 80, 18)
HSLhsl(96, 63%, 19%)
HSVhsv(96, 78%, 31%)
CMYKcmyk(46.2%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.14, -25.35, 30.80)
CIE-LCHlch(30.14, 39.89, 129.46°)
OKLaboklab(38.93% -0.0707 0.0697)
OKLCHoklch(38.93% 0.099 135.4)
XYZxyz(3.9740, 6.2944, 1.5777)
Luminance0.0630 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5012 #371250
analogous
#4A5012 #2B5012 #125018
triadic
#2B5012 #122B50 #50122B
tetradic
#2B5012 #124A50 #371250 #501812
square
#2B5012 #124A50 #371250 #501812
split-complementary
#2B5012 #181250 #50124A
monochromatic
#0D1906 #101E07 #2B5012 #46821D #61B428

Accessibility & contrast

On white

9.30
#2B5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2B5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5012
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5012#FFFFFF#000000##FFFFFF
##2B50121.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534908
Deuteranopia (green-blind)
#4E4618
Tritanopia (blue-blind)
#2A4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b5012;
/* rgb */ color: rgb(43, 80, 18);
/* oklch */ color: oklch(38.9% 0.099 135.4);
Tailwind
colors: {
  custom: {
    50: '#688154',
    500: '#2b5012',
    950: '#000000',
  },
}
SCSS
$custom: #2b5012;
$custom-light: #688154;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5012",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 95.806,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38929,
    "c": 0.09924,
    "h": 135.4
  },
  "luminance": 0.06295
}

Semantic roles & 50–950 ramp

primary
#2B5012
secondary
#673589
accent
#41E6A4
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5012

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

Preview Lab → · Contrast checker → · Palette generator →

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