#12742D#12742D

#12742D is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.137 H 147.2°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#12742D
RGBrgb(18, 116, 45)
HSLhsl(137, 73%, 26%)
HSVhsv(137, 84%, 45%)
CMYKcmyk(84.5%, 0%, 61.2%, 54.5%)
CIE-LABlab(42.47, -42.77, 31.22)
CIE-LCHlch(42.47, 52.96, 143.87°)
OKLaboklab(48.99% -0.115 0.074)
OKLCHoklch(48.99% 0.137 147.2)
XYZxyz(6.9680, 12.8080, 4.5871)
Luminance0.1281 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12742D #741259
analogous
#287412 #12742D #12745E
triadic
#12742D #2D1274 #742D12
tetradic
#12742D #122874 #741259 #745E12
square
#12742D #122874 #741259 #745E12
split-complementary
#12742D #5E1274 #741228
monochromatic
#041A0A #0A3F18 #12742D #1AA942 #23DD57

Accessibility & contrast

On white

5.90
#12742D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#12742D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12742D
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12742D#FFFFFF#000000##FFFFFF
##12742D1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756926
Deuteranopia (green-blind)
#6B6133
Tritanopia (blue-blind)
#007164
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #12742d;
/* rgb */ color: rgb(18, 116, 45);
/* oklch */ color: oklch(49.0% 0.137 147.2);
Tailwind
colors: {
  custom: {
    50: '#649d68',
    500: '#12742d',
    950: '#000000',
  },
}
SCSS
$custom: #12742d;
$custom-light: #649d68;
$custom-dark: #000000;
JSON
{
  "hex": "#12742d",
  "rgb": {
    "r": 18,
    "g": 116,
    "b": 45
  },
  "hsl": {
    "h": 136.531,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48988,
    "c": 0.13669,
    "h": 147.2
  },
  "luminance": 0.12809
}

Semantic roles & 50–950 ramp

primary
#12742D
secondary
#AB378B
accent
#38BDF0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #12742D

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

Preview Lab → · Contrast checker → · Palette generator →

#12742D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva