#2B5A12#2B5A12

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

Color values

HEX#2B5A12
RGBrgb(43, 90, 18)
HSLhsl(99, 67%, 21%)
HSVhsv(99, 80%, 35%)
CMYKcmyk(52.2%, 0%, 80%, 64.7%)
CIE-LABlab(33.71, -29.94, 34.38)
CIE-LCHlch(33.71, 45.59, 131.05°)
OKLaboklab(41.86% -0.0831 0.0772)
OKLCHoklch(41.86% 0.113 137.1)
XYZxyz(4.7615, 7.8693, 1.8402)
Luminance0.0787 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5A12 #41125A
analogous
#4F5A12 #2B5A12 #125A1D
triadic
#2B5A12 #122B5A #5A122B
tetradic
#2B5A12 #124F5A #41125A #5A1D12
square
#2B5A12 #124F5A #41125A #5A1D12
split-complementary
#2B5A12 #1D125A #5A124F
monochromatic
#0C1A05 #132708 #2B5A12 #438D1C #5CC026

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B5A12#FFFFFF#000000##FFFFFF
##2B5A121.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)
#5D5204
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#28564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b5a12;
/* rgb */ color: rgb(43, 90, 18);
/* oklch */ color: oklch(41.9% 0.113 137.1);
Tailwind
colors: {
  custom: {
    50: '#6a8956',
    500: '#2b5a12',
    950: '#000000',
  },
}
SCSS
$custom: #2b5a12;
$custom-light: #6a8956;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5a12",
  "rgb": {
    "r": 43,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 99.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41856,
    "c": 0.11339,
    "h": 137.1
  },
  "luminance": 0.0787
}

Semantic roles & 50–950 ramp

primary
#2B5A12
secondary
#723593
accent
#3EEAAE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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