#2B5017#2B5017

#2B5017 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.095 H 136.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2B5017
RGBrgb(43, 80, 23)
HSLhsl(99, 55%, 20%)
HSVhsv(99, 71%, 31%)
CMYKcmyk(46.2%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.19, -24.88, 28.52)
CIE-LCHlch(30.19, 37.85, 131.10°)
OKLaboklab(38.98% -0.069 0.0657)
OKLCHoklch(38.98% 0.095 136.4)
XYZxyz(4.0195, 6.3125, 1.8171)
Luminance0.0631 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5017 #3C1750
analogous
#485017 #2B5017 #17501F
triadic
#2B5017 #172B50 #50172B
tetradic
#2B5017 #174850 #3C1750 #501F17
square
#2B5017 #174850 #3C1750 #501F17
split-complementary
#2B5017 #1F1750 #501748
monochromatic
#0D1807 #112009 #2B5017 #458025 #5EAF32

Accessibility & contrast

On white

9.28
#2B5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5017
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5017#FFFFFF#000000##FFFFFF
##2B50171.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#294D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b5017;
/* rgb */ color: rgb(43, 80, 23);
/* oklch */ color: oklch(39.0% 0.095 136.4);
Tailwind
colors: {
  custom: {
    50: '#688157',
    500: '#2b5017',
    950: '#000000',
  },
}
SCSS
$custom: #2b5017;
$custom-light: #688157;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5017",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 98.947,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.3898,
    "c": 0.09523,
    "h": 136.4
  },
  "luminance": 0.06313
}

Semantic roles & 50–950 ramp

primary
#2B5017
secondary
#6D3C87
accent
#49DFAA
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5017

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

Preview Lab → · Contrast checker → · Palette generator →

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