#12581B#12581B

#12581B is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.4% C 0.115 H 144.8°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#12581B
RGBrgb(18, 88, 27)
HSLhsl(128, 66%, 21%)
HSVhsv(128, 80%, 35%)
CMYKcmyk(79.5%, 0%, 69.3%, 65.5%)
CIE-LABlab(32.23, -34.88, 28.54)
CIE-LCHlch(32.23, 45.07, 140.71°)
OKLaboklab(40.42% -0.0942 0.0664)
OKLCHoklch(40.42% 0.115 144.8)
XYZxyz(3.9367, 7.1867, 2.2164)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12581B #58124F
analogous
#2C5812 #12581B #12583E
triadic
#12581B #1B1258 #581B12
tetradic
#12581B #122C58 #58124F #583E12
square
#12581B #122C58 #58124F #583E12
split-complementary
#12581B #3E1258 #58122C
monochromatic
#051908 #08250B #12581B #1C8B2B #27BE3A

Accessibility & contrast

On white

8.62
#12581B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#12581B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12581B
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12581B#FFFFFF#000000##FFFFFF
##12581B1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F14
Deuteranopia (green-blind)
#524A20
Tritanopia (blue-blind)
#00564B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #12581b;
/* rgb */ color: rgb(18, 88, 27);
/* oklch */ color: oklch(40.4% 0.115 144.8);
Tailwind
colors: {
  custom: {
    50: '#5d885a',
    500: '#12581b',
    950: '#000000',
  },
}
SCSS
$custom: #12581b;
$custom-light: #5d885a;
$custom-dark: #000000;
JSON
{
  "hex": "#12581b",
  "rgb": {
    "r": 18,
    "g": 88,
    "b": 27
  },
  "hsl": {
    "h": 127.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40422,
    "c": 0.11528,
    "h": 144.8
  },
  "luminance": 0.07187
}

Semantic roles & 50–950 ramp

primary
#12581B
secondary
#913585
accent
#3FD3E9
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #12581B

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

Preview Lab → · Contrast checker → · Palette generator →

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