#12511B#12511B

#12511B is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.3% C 0.106 H 145.3°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#12511B
RGBrgb(18, 81, 27)
HSLhsl(129, 64%, 19%)
HSVhsv(129, 78%, 32%)
CMYKcmyk(77.8%, 0%, 66.7%, 68.2%)
CIE-LABlab(29.64, -32.16, 25.63)
CIE-LCHlch(29.64, 41.13, 141.45°)
OKLaboklab(38.28% -0.0869 0.0602)
OKLCHoklch(38.28% 0.106 145.3)
XYZxyz(3.3895, 6.0922, 2.0340)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12511B #511248
analogous
#295112 #12511B #12513B
triadic
#12511B #1B1251 #511B12
tetradic
#12511B #122951 #511248 #513B12
square
#12511B #122951 #511248 #513B12
split-complementary
#12511B #3B1251 #511229
monochromatic
#061908 #071F0A #12511B #1D832C #28B53C

Accessibility & contrast

On white

9.47
#12511B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#12511B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12511B
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12511B#FFFFFF#000000##FFFFFF
##12511B1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524915
Deuteranopia (green-blind)
#4B4420
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #12511b;
/* rgb */ color: rgb(18, 81, 27);
/* oklch */ color: oklch(38.3% 0.106 145.3);
Tailwind
colors: {
  custom: {
    50: '#5b8359',
    500: '#12511b',
    950: '#000000',
  },
}
SCSS
$custom: #12511b;
$custom-light: #5b8359;
$custom-dark: #000000;
JSON
{
  "hex": "#12511b",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 27
  },
  "hsl": {
    "h": 128.571,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3828,
    "c": 0.10567,
    "h": 145.3
  },
  "luminance": 0.06093
}

Semantic roles & 50–950 ramp

primary
#12511B
secondary
#8A357E
accent
#41CFE7
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #12511B

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

Preview Lab → · Contrast checker → · Palette generator →

#12511B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva