#2B5F0F#2B5F0F

#2B5F0F is a dark, vivid yellow-green. Relative luminance 0.087; OKLCH L 43.3% C 0.122 H 137.4°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2B5F0F
RGBrgb(43, 95, 15)
HSLhsl(99, 73%, 22%)
HSVhsv(99, 84%, 37%)
CMYKcmyk(54.7%, 0%, 84.2%, 62.7%)
CIE-LABlab(35.46, -32.32, 37.18)
CIE-LCHlch(35.46, 49.26, 131.00°)
OKLaboklab(43.29% -0.0897 0.0825)
OKLCHoklch(43.29% 0.122 137.4)
XYZxyz(5.1745, 8.7321, 1.8646)
Luminance0.0873 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5F0F #430F5F
analogous
#535F0F #2B5F0F #0F5F1B
triadic
#2B5F0F #0F2B5F #5F0F2B
tetradic
#2B5F0F #0F535F #430F5F #5F1B0F
square
#2B5F0F #0F535F #430F5F #5F1B0F
split-complementary
#2B5F0F #1B0F5F #5F0F53
monochromatic
#0C1A04 #132A07 #2B5F0F #439417 #5BC920

Accessibility & contrast

On white

7.65
#2B5F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2B5F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5F0F
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5F0F#FFFFFF#000000##FFFFFF
##2B5F0F1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#5C5218
Tritanopia (blue-blind)
#275B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2b5f0f;
/* rgb */ color: rgb(43, 95, 15);
/* oklch */ color: oklch(43.3% 0.122 137.4);
Tailwind
colors: {
  custom: {
    50: '#6b8d55',
    500: '#2b5f0f',
    950: '#000000',
  },
}
SCSS
$custom: #2b5f0f;
$custom-light: #6b8d55;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5f0f",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 99,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43293,
    "c": 0.12188,
    "h": 137.4
  },
  "luminance": 0.08732
}

Semantic roles & 50–950 ramp

primary
#2B5F0F
secondary
#743298
accent
#38EFAF
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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