#12581F#12581F

#12581F is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.5% C 0.112 H 146.0°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#12581F
RGBrgb(18, 88, 31)
HSLhsl(131, 66%, 21%)
HSVhsv(131, 80%, 35%)
CMYKcmyk(79.5%, 0%, 64.8%, 65.5%)
CIE-LABlab(32.27, -34.35, 26.56)
CIE-LCHlch(32.27, 43.42, 142.29°)
OKLaboklab(40.47% -0.0926 0.0626)
OKLCHoklch(40.47% 0.112 146)
XYZxyz(3.9862, 7.2065, 2.4770)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12581F #58124B
analogous
#285812 #12581F #125842
triadic
#12581F #1F1258 #581F12
tetradic
#12581F #122858 #58124B #584212
square
#12581F #122858 #58124B #584212
split-complementary
#12581F #421258 #581228
monochromatic
#051909 #08250D #12581F #1C8B31 #27BE43

Accessibility & contrast

On white

8.60
#12581F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12581F
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12581F#FFFFFF#000000##FFFFFF
##12581F1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F19
Deuteranopia (green-blind)
#514A24
Tritanopia (blue-blind)
#00564C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #12581f;
/* rgb */ color: rgb(18, 88, 31);
/* oklch */ color: oklch(40.5% 0.112 146.0);
Tailwind
colors: {
  custom: {
    50: '#5d885d',
    500: '#12581f',
    950: '#000000',
  },
}
SCSS
$custom: #12581f;
$custom-light: #5d885d;
$custom-dark: #000000;
JSON
{
  "hex": "#12581f",
  "rgb": {
    "r": 18,
    "g": 88,
    "b": 31
  },
  "hsl": {
    "h": 131.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40473,
    "c": 0.11179,
    "h": 146
  },
  "luminance": 0.07207
}

Semantic roles & 50–950 ramp

primary
#12581F
secondary
#913580
accent
#3FC9E9
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #12581F

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

Preview Lab → · Contrast checker → · Palette generator →

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