#2B5C0F#2B5C0F

#2B5C0F is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.4% C 0.118 H 137.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2B5C0F
RGBrgb(43, 92, 15)
HSLhsl(98, 72%, 21%)
HSVhsv(98, 84%, 36%)
CMYKcmyk(53.3%, 0%, 83.7%, 63.9%)
CIE-LABlab(34.40, -31.03, 36.17)
CIE-LCHlch(34.40, 47.66, 130.63°)
OKLaboklab(42.42% -0.0862 0.0804)
OKLCHoklch(42.42% 0.118 137)
XYZxyz(4.9095, 8.2020, 1.7763)
Luminance0.0820 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5C0F #400F5C
analogous
#515C0F #2B5C0F #0F5C19
triadic
#2B5C0F #0F2B5C #5C0F2B
tetradic
#2B5C0F #0F515C #400F5C #5C190F
square
#2B5C0F #0F515C #400F5C #5C190F
split-complementary
#2B5C0F #190F5C #5C0F51
monochromatic
#0C1A04 #122706 #2B5C0F #449118 #5CC520

Accessibility & contrast

On white

7.95
#2B5C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2B5C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5C0F
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5C0F#FFFFFF#000000##FFFFFF
##2B5C0F1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#594F18
Tritanopia (blue-blind)
#28584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b5c0f;
/* rgb */ color: rgb(43, 92, 15);
/* oklch */ color: oklch(42.4% 0.118 137.0);
Tailwind
colors: {
  custom: {
    50: '#6a8b54',
    500: '#2b5c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2b5c0f;
$custom-light: #6a8b54;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5c0f",
  "rgb": {
    "r": 43,
    "g": 92,
    "b": 15
  },
  "hsl": {
    "h": 98.182,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42418,
    "c": 0.1179,
    "h": 137
  },
  "luminance": 0.08202
}

Semantic roles & 50–950 ramp

primary
#2B5C0F
secondary
#713195
accent
#39EFAD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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