#2B5D0F#2B5D0F

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

Color values

HEX#2B5D0F
RGBrgb(43, 93, 15)
HSLhsl(98, 72%, 21%)
HSVhsv(98, 84%, 36%)
CMYKcmyk(53.8%, 0%, 83.9%, 63.5%)
CIE-LABlab(34.75, -31.46, 36.51)
CIE-LCHlch(34.75, 48.20, 130.76°)
OKLaboklab(42.71% -0.0874 0.0811)
OKLCHoklch(42.71% 0.119 137.1)
XYZxyz(4.9967, 8.3764, 1.8054)
Luminance0.0838 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5D0F #410F5D
analogous
#525D0F #2B5D0F #0F5D1A
triadic
#2B5D0F #0F2B5D #5D0F2B
tetradic
#2B5D0F #0F525D #410F5D #5D1A0F
square
#2B5D0F #0F525D #410F5D #5D1A0F
split-complementary
#2B5D0F #1A0F5D #5D0F52
monochromatic
#0C1A04 #132806 #2B5D0F #439217 #5CC620

Accessibility & contrast

On white

7.85
#2B5D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2B5D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5D0F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5D0F#FFFFFF#000000##FFFFFF
##2B5D0F1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#5A5018
Tritanopia (blue-blind)
#28594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2b5d0f;
/* rgb */ color: rgb(43, 93, 15);
/* oklch */ color: oklch(42.7% 0.119 137.1);
Tailwind
colors: {
  custom: {
    50: '#6a8b55',
    500: '#2b5d0f',
    950: '#000000',
  },
}
SCSS
$custom: #2b5d0f;
$custom-light: #6a8b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5d0f",
  "rgb": {
    "r": 43,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 98.462,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.4271,
    "c": 0.11924,
    "h": 137.1
  },
  "luminance": 0.08377
}

Semantic roles & 50–950 ramp

primary
#2B5D0F
secondary
#723196
accent
#39EFAE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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