#2B5315#2B5315

#2B5315 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 39.8% C 0.101 H 136.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2B5315
RGBrgb(43, 83, 21)
HSLhsl(99, 60%, 20%)
HSVhsv(99, 75%, 33%)
CMYKcmyk(48.2%, 0%, 74.7%, 67.5%)
CIE-LABlab(31.24, -26.50, 30.59)
CIE-LCHlch(31.24, 40.48, 130.91°)
OKLaboklab(39.84% -0.0735 0.0697)
OKLCHoklch(39.84% 0.101 136.5)
XYZxyz(4.2248, 6.7540, 1.7904)
Luminance0.0675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5315 #3D1553
analogous
#4A5315 #2B5315 #15531E
triadic
#2B5315 #152B53 #53152B
tetradic
#2B5315 #154A53 #3D1553 #531E15
square
#2B5315 #154A53 #3D1553 #531E15
split-complementary
#2B5315 #1E1553 #53154A
monochromatic
#0D1806 #122209 #2B5315 #448421 #5EB52E

Accessibility & contrast

On white

8.93
#2B5315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2B5315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5315
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5315#FFFFFF#000000##FFFFFF
##2B53151.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0C
Deuteranopia (green-blind)
#51481B
Tritanopia (blue-blind)
#295047
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5315;
/* rgb */ color: rgb(43, 83, 21);
/* oklch */ color: oklch(39.8% 0.101 136.5);
Tailwind
colors: {
  custom: {
    50: '#688456',
    500: '#2b5315',
    950: '#000000',
  },
}
SCSS
$custom: #2b5315;
$custom-light: #688456;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5315",
  "rgb": {
    "r": 43,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 98.71,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39836,
    "c": 0.10134,
    "h": 136.5
  },
  "luminance": 0.06754
}

Semantic roles & 50–950 ramp

primary
#2B5315
secondary
#6E398B
accent
#45E3AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2B5315

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

Preview Lab → · Contrast checker → · Palette generator →

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