#2B5A0D#2B5A0D

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

Color values

HEX#2B5A0D
RGBrgb(43, 90, 13)
HSLhsl(97, 75%, 20%)
HSVhsv(97, 86%, 35%)
CMYKcmyk(52.2%, 0%, 85.6%, 64.7%)
CIE-LABlab(33.68, -30.28, 36.18)
CIE-LCHlch(33.68, 47.18, 129.93°)
OKLaboklab(41.82% -0.0843 0.0801)
OKLCHoklch(41.82% 0.116 136.5)
XYZxyz(4.7249, 7.8547, 1.6478)
Luminance0.0785 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5A0D #3C0D5A
analogous
#525A0D #2B5A0D #0D5A15
triadic
#2B5A0D #0D2B5A #5A0D2B
tetradic
#2B5A0D #0D525A #3C0D5A #5A150D
square
#2B5A0D #0D525A #3C0D5A #5A150D
split-complementary
#2B5A0D #150D5A #5A0D52
monochromatic
#0D1B04 #112505 #2B5A0D #458F15 #5EC51C

Accessibility & contrast

On white

8.17
#2B5A0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5A0D
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5A0D#FFFFFF#000000##FFFFFF
##2B5A0D1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b5a0d;
/* rgb */ color: rgb(43, 90, 13);
/* oklch */ color: oklch(41.8% 0.116 136.5);
Tailwind
colors: {
  custom: {
    50: '#6a8953',
    500: '#2b5a0d',
    950: '#000000',
  },
}
SCSS
$custom: #2b5a0d;
$custom-light: #6a8953;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5a0d",
  "rgb": {
    "r": 43,
    "g": 90,
    "b": 13
  },
  "hsl": {
    "h": 96.623,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41821,
    "c": 0.11632,
    "h": 136.5
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#2B5A0D
secondary
#6D2E94
accent
#36F1A9
background
#F6F8F5
surface
#EBF0E8
border
#C6CBC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5A0D

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

Preview Lab → · Contrast checker → · Palette generator →

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