#12742C#12742C

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

Color values

HEX#12742C
RGBrgb(18, 116, 44)
HSLhsl(136, 73%, 26%)
HSVhsv(136, 84%, 45%)
CMYKcmyk(84.5%, 0%, 62.1%, 54.5%)
CIE-LABlab(42.46, -42.91, 31.71)
CIE-LCHlch(42.46, 53.36, 143.54°)
OKLaboklab(48.98% -0.1154 0.0749)
OKLCHoklch(48.98% 0.138 147)
XYZxyz(6.9489, 12.8004, 4.4869)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12742C #74125A
analogous
#297412 #12742C #12745D
triadic
#12742C #2C1274 #742C12
tetradic
#12742C #122974 #74125A #745D12
square
#12742C #122974 #74125A #745D12
split-complementary
#12742C #5D1274 #741229
monochromatic
#041A0A #0A3F18 #12742C #1AA940 #23DD55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12742C#FFFFFF#000000##FFFFFF
##12742C1.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)
#766925
Deuteranopia (green-blind)
#6B6132
Tritanopia (blue-blind)
#007164
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #12742c;
/* rgb */ color: rgb(18, 116, 44);
/* oklch */ color: oklch(49.0% 0.138 147.0);
Tailwind
colors: {
  custom: {
    50: '#649d68',
    500: '#12742c',
    950: '#000000',
  },
}
SCSS
$custom: #12742c;
$custom-light: #649d68;
$custom-dark: #000000;
JSON
{
  "hex": "#12742c",
  "rgb": {
    "r": 18,
    "g": 116,
    "b": 44
  },
  "hsl": {
    "h": 135.918,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48975,
    "c": 0.13756,
    "h": 147
  },
  "luminance": 0.12801
}

Semantic roles & 50–950 ramp

primary
#12742C
secondary
#AB378C
accent
#38BFF0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #12742C

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

Preview Lab → · Contrast checker → · Palette generator →

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