#12742A#12742A

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

Color values

HEX#12742A
RGBrgb(18, 116, 42)
HSLhsl(135, 73%, 26%)
HSVhsv(135, 84%, 45%)
CMYKcmyk(84.5%, 0%, 63.8%, 54.5%)
CIE-LABlab(42.44, -43.19, 32.68)
CIE-LCHlch(42.44, 54.16, 142.88°)
OKLaboklab(48.95% -0.1162 0.0768)
OKLCHoklch(48.95% 0.139 146.5)
XYZxyz(6.9122, 12.7857, 4.2936)
Luminance0.1279 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12742A #74125C
analogous
#2B7412 #12742A #12745B
triadic
#12742A #2A1274 #742A12
tetradic
#12742A #122B74 #74125C #745B12
square
#12742A #122B74 #74125C #745B12
split-complementary
#12742A #5B1274 #74122B
monochromatic
#041A0A #0A3F17 #12742A #1AA93D #23DD51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12742A#FFFFFF#000000##FFFFFF
##12742A1.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)
#766922
Deuteranopia (green-blind)
#6B6130
Tritanopia (blue-blind)
#007164
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #12742a;
/* rgb */ color: rgb(18, 116, 42);
/* oklch */ color: oklch(48.9% 0.139 146.5);
Tailwind
colors: {
  custom: {
    50: '#649d66',
    500: '#12742a',
    950: '#000000',
  },
}
SCSS
$custom: #12742a;
$custom-light: #649d66;
$custom-dark: #000000;
JSON
{
  "hex": "#12742a",
  "rgb": {
    "r": 18,
    "g": 116,
    "b": 42
  },
  "hsl": {
    "h": 134.694,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48949,
    "c": 0.13927,
    "h": 146.5
  },
  "luminance": 0.12787
}

Semantic roles & 50–950 ramp

primary
#12742A
secondary
#AB378E
accent
#38C3F0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #12742A

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

Preview Lab → · Contrast checker → · Palette generator →

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