#2B5C12#2B5C12

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

Color values

HEX#2B5C12
RGBrgb(43, 92, 18)
HSLhsl(100, 67%, 22%)
HSVhsv(100, 80%, 36%)
CMYKcmyk(53.3%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.42, -30.82, 35.08)
CIE-LCHlch(34.42, 46.70, 131.31°)
OKLaboklab(42.44% -0.0854 0.0786)
OKLCHoklch(42.44% 0.116 137.4)
XYZxyz(4.9324, 8.2112, 1.8972)
Luminance0.0821 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5C12 #43125C
analogous
#505C12 #2B5C12 #125C1E
triadic
#2B5C12 #122B5C #5C122B
tetradic
#2B5C12 #12505C #43125C #5C1E12
square
#2B5C12 #12505C #43125C #5C1E12
split-complementary
#2B5C12 #1E125C #5C1250
monochromatic
#0C1A05 #132908 #2B5C12 #438F1C #5BC226

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B5C12#FFFFFF#000000##FFFFFF
##2B5C121.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)
#5F5304
Deuteranopia (green-blind)
#594F1A
Tritanopia (blue-blind)
#28584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b5c12;
/* rgb */ color: rgb(43, 92, 18);
/* oklch */ color: oklch(42.4% 0.116 137.4);
Tailwind
colors: {
  custom: {
    50: '#6a8b56',
    500: '#2b5c12',
    950: '#000000',
  },
}
SCSS
$custom: #2b5c12;
$custom-light: #6a8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5c12",
  "rgb": {
    "r": 43,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 99.73,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.4244,
    "c": 0.11612,
    "h": 137.4
  },
  "luminance": 0.08212
}

Semantic roles & 50–950 ramp

primary
#2B5C12
secondary
#743594
accent
#3EEAB0
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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