#2B5215#2B5215

#2B5215 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.100 H 136.4°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#2B5215
RGBrgb(43, 82, 21)
HSLhsl(98, 59%, 20%)
HSVhsv(98, 74%, 32%)
CMYKcmyk(47.6%, 0%, 74.4%, 67.8%)
CIE-LABlab(30.88, -26.04, 30.22)
CIE-LCHlch(30.88, 39.89, 130.75°)
OKLaboklab(39.54% -0.0723 0.0689)
OKLCHoklch(39.54% 0.1 136.4)
XYZxyz(4.1488, 6.6021, 1.7650)
Luminance0.0660 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5215 #3C1552
analogous
#495215 #2B5215 #15521E
triadic
#2B5215 #152B52 #52152B
tetradic
#2B5215 #154952 #3C1552 #521E15
square
#2B5215 #154952 #3C1552 #521E15
split-complementary
#2B5215 #1E1552 #521549
monochromatic
#0D1806 #112109 #2B5215 #458321 #5EB32E

Accessibility & contrast

On white

9.05
#2B5215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2B5215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5215
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5215#FFFFFF#000000##FFFFFF
##2B52151.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0C
Deuteranopia (green-blind)
#50471A
Tritanopia (blue-blind)
#294F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5215;
/* rgb */ color: rgb(43, 82, 21);
/* oklch */ color: oklch(39.5% 0.100 136.4);
Tailwind
colors: {
  custom: {
    50: '#688356',
    500: '#2b5215',
    950: '#000000',
  },
}
SCSS
$custom: #2b5215;
$custom-light: #688356;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5215",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 98.361,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39543,
    "c": 0.09987,
    "h": 136.4
  },
  "luminance": 0.06602
}

Semantic roles & 50–950 ramp

primary
#2B5215
secondary
#6D398A
accent
#45E2AA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5215

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

Preview Lab → · Contrast checker → · Palette generator →

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