#2B5A0F#2B5A0F

#2B5A0F is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 41.8% C 0.115 H 136.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2B5A0F
RGBrgb(43, 90, 15)
HSLhsl(98, 71%, 21%)
HSVhsv(98, 83%, 35%)
CMYKcmyk(52.2%, 0%, 83.3%, 64.7%)
CIE-LABlab(33.69, -30.16, 35.50)
CIE-LCHlch(33.69, 46.58, 130.35°)
OKLaboklab(41.83% -0.0839 0.079)
OKLCHoklch(41.83% 0.115 136.7)
XYZxyz(4.7385, 7.8601, 1.7193)
Luminance0.0786 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5A0F #3E0F5A
analogous
#505A0F #2B5A0F #0F5A18
triadic
#2B5A0F #0F2B5A #5A0F2B
tetradic
#2B5A0F #0F505A #3E0F5A #5A180F
square
#2B5A0F #0F505A #3E0F5A #5A180F
split-complementary
#2B5A0F #180F5A #5A0F50
monochromatic
#0D1A04 #122606 #2B5A0F #448E18 #5DC320

Accessibility & contrast

On white

8.16
#2B5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2B5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5A0F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5A0F#FFFFFF#000000##FFFFFF
##2B5A0F1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5200
Deuteranopia (green-blind)
#574E17
Tritanopia (blue-blind)
#28564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b5a0f;
/* rgb */ color: rgb(43, 90, 15);
/* oklch */ color: oklch(41.8% 0.115 136.7);
Tailwind
colors: {
  custom: {
    50: '#6a8954',
    500: '#2b5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2b5a0f;
$custom-light: #6a8954;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5a0f",
  "rgb": {
    "r": 43,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 97.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41834,
    "c": 0.11522,
    "h": 136.7
  },
  "luminance": 0.0786
}

Semantic roles & 50–950 ramp

primary
#2B5A0F
secondary
#6F3194
accent
#3AEEAB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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