#2B5214#2B5214

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

Color values

HEX#2B5214
RGBrgb(43, 82, 20)
HSLhsl(98, 61%, 20%)
HSVhsv(98, 76%, 32%)
CMYKcmyk(47.6%, 0%, 75.6%, 67.8%)
CIE-LABlab(30.87, -26.13, 30.66)
CIE-LCHlch(30.87, 40.28, 130.43°)
OKLaboklab(39.53% -0.0726 0.0697)
OKLCHoklch(39.53% 0.101 136.2)
XYZxyz(4.1397, 6.5984, 1.7172)
Luminance0.0660 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5214 #3B1452
analogous
#4A5214 #2B5214 #14521C
triadic
#2B5214 #142B52 #52142B
tetradic
#2B5214 #144A52 #3B1452 #521C14
square
#2B5214 #144A52 #3B1452 #521C14
split-complementary
#2B5214 #1C1452 #52144A
monochromatic
#0D1906 #112108 #2B5214 #458320 #5FB42C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B5214#FFFFFF#000000##FFFFFF
##2B52141.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)
#554B0B
Deuteranopia (green-blind)
#50471A
Tritanopia (blue-blind)
#294F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5214;
/* rgb */ color: rgb(43, 82, 20);
/* oklch */ color: oklch(39.5% 0.101 136.2);
Tailwind
colors: {
  custom: {
    50: '#688356',
    500: '#2b5214',
    950: '#000000',
  },
}
SCSS
$custom: #2b5214;
$custom-light: #688356;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5214",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 20
  },
  "hsl": {
    "h": 97.742,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.39534,
    "c": 0.10066,
    "h": 136.2
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

primary
#2B5214
secondary
#6C388A
accent
#44E4A9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5214

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

Preview Lab → · Contrast checker → · Palette generator →

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