#12731E#12731E

#12731E is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.5% C 0.147 H 144.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#12731E
RGBrgb(18, 115, 30)
HSLhsl(127, 73%, 26%)
HSVhsv(127, 84%, 45%)
CMYKcmyk(84.3%, 0%, 73.9%, 54.9%)
CIE-LABlab(41.97, -44.23, 37.67)
CIE-LCHlch(41.97, 58.09, 139.58°)
OKLaboklab(48.53% -0.1195 0.086)
OKLCHoklch(48.53% 0.147 144.3)
XYZxyz(6.6141, 12.4830, 3.2889)
Luminance0.1248 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12731E #731267
analogous
#367312 #12731E #12734E
triadic
#12731E #1E1273 #731E12
tetradic
#12731E #123673 #731267 #734E12
square
#12731E #123673 #731267 #734E12
split-complementary
#12731E #4E1273 #731236
monochromatic
#041A07 #0A3E10 #12731E #1AA82C #23DD3A

Accessibility & contrast

On white

6.01
#12731E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#12731E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12731E
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12731E#FFFFFF#000000##FFFFFF
##12731E1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756710
Deuteranopia (green-blind)
#6B6027
Tritanopia (blue-blind)
#007062
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #12731e;
/* rgb */ color: rgb(18, 115, 30);
/* oklch */ color: oklch(48.5% 0.147 144.3);
Tailwind
colors: {
  custom: {
    50: '#649c5f',
    500: '#12731e',
    950: '#000000',
  },
}
SCSS
$custom: #12731e;
$custom-light: #649c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#12731e",
  "rgb": {
    "r": 18,
    "g": 115,
    "b": 30
  },
  "hsl": {
    "h": 127.423,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48526,
    "c": 0.14723,
    "h": 144.3
  },
  "luminance": 0.12484
}

Semantic roles & 50–950 ramp

primary
#12731E
secondary
#AA379C
accent
#38D9F0
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #12731E

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

Preview Lab → · Contrast checker → · Palette generator →

#12731E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva