#2B5812#2B5812

#2B5812 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.3% C 0.111 H 136.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2B5812
RGBrgb(43, 88, 18)
HSLhsl(99, 66%, 21%)
HSVhsv(99, 80%, 35%)
CMYKcmyk(51.1%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.00, -29.05, 33.68)
CIE-LCHlch(33.00, 44.48, 130.79°)
OKLaboklab(41.27% -0.0807 0.0757)
OKLCHoklch(41.27% 0.111 136.8)
XYZxyz(4.5950, 7.5364, 1.7847)
Luminance0.0754 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5812 #3F1258
analogous
#4E5812 #2B5812 #12581C
triadic
#2B5812 #122B58 #58122B
tetradic
#2B5812 #124E58 #3F1258 #581C12
square
#2B5812 #124E58 #3F1258 #581C12
split-complementary
#2B5812 #1C1258 #58124E
monochromatic
#0C1905 #122508 #2B5812 #448B1C #5DBE27

Accessibility & contrast

On white

8.38
#2B5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2B5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5812
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5812#FFFFFF#000000##FFFFFF
##2B58121.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5005
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#29554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b5812;
/* rgb */ color: rgb(43, 88, 18);
/* oklch */ color: oklch(41.3% 0.111 136.8);
Tailwind
colors: {
  custom: {
    50: '#698755',
    500: '#2b5812',
    950: '#000000',
  },
}
SCSS
$custom: #2b5812;
$custom-light: #698755;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5812",
  "rgb": {
    "r": 43,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 98.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41271,
    "c": 0.11063,
    "h": 136.8
  },
  "luminance": 0.07537
}

Semantic roles & 50–950 ramp

primary
#2B5812
secondary
#703591
accent
#3FE9AC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5812

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

Preview Lab → · Contrast checker → · Palette generator →

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