#2B500F#2B500F

#2B500F is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.101 H 134.9°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2B500F
RGBrgb(43, 80, 15)
HSLhsl(94, 68%, 19%)
HSVhsv(94, 81%, 31%)
CMYKcmyk(46.2%, 0%, 81.3%, 68.6%)
CIE-LABlab(30.12, -25.59, 32.04)
CIE-LCHlch(30.12, 41.00, 128.62°)
OKLaboklab(38.9% -0.0715 0.0718)
OKLCHoklch(38.9% 0.101 134.9)
XYZxyz(3.9511, 6.2852, 1.4568)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B500F #340F50
analogous
#4B500F #2B500F #0F5013
triadic
#2B500F #0F2B50 #500F2B
tetradic
#2B500F #0F4B50 #340F50 #50130F
square
#2B500F #0F4B50 #340F50 #50130F
split-complementary
#2B500F #130F50 #500F4B
monochromatic
#0E1A05 #0F1C05 #2B500F #478419 #62B722

Accessibility & contrast

On white

9.30
#2B500F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2B500F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B500F
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B500F#FFFFFF#000000##FFFFFF
##2B500F1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534904
Deuteranopia (green-blind)
#4E4616
Tritanopia (blue-blind)
#2A4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b500f;
/* rgb */ color: rgb(43, 80, 15);
/* oklch */ color: oklch(38.9% 0.101 134.9);
Tailwind
colors: {
  custom: {
    50: '#688153',
    500: '#2b500f',
    950: '#000000',
  },
}
SCSS
$custom: #2b500f;
$custom-light: #688153;
$custom-dark: #000000;
JSON
{
  "hex": "#2b500f",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 15
  },
  "hsl": {
    "h": 94.154,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38903,
    "c": 0.10136,
    "h": 134.9
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#2B500F
secondary
#64318A
accent
#3DEBA0
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2B500F

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

Preview Lab → · Contrast checker → · Palette generator →

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