#12731F#12731F

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

Color values

HEX#12731F
RGBrgb(18, 115, 31)
HSLhsl(128, 73%, 26%)
HSVhsv(128, 84%, 45%)
CMYKcmyk(84.3%, 0%, 73%, 54.9%)
CIE-LABlab(41.98, -44.13, 37.25)
CIE-LCHlch(41.98, 57.75, 139.83°)
OKLaboklab(48.54% -0.1192 0.0853)
OKLCHoklch(48.54% 0.147 144.4)
XYZxyz(6.6270, 12.4882, 3.3573)
Luminance0.1249 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12731F #731266
analogous
#357312 #12731F #12734F
triadic
#12731F #1F1273 #731F12
tetradic
#12731F #123573 #731266 #734F12
square
#12731F #123573 #731266 #734F12
split-complementary
#12731F #4F1273 #731235
monochromatic
#041A07 #0A3E11 #12731F #1AA82D #23DD3C

Accessibility & contrast

On white

6.00
#12731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #12731F
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12731F#FFFFFF#000000##FFFFFF
##12731F1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12731f;
/* rgb */ color: rgb(18, 115, 31);
/* oklch */ color: oklch(48.5% 0.147 144.4);
Tailwind
colors: {
  custom: {
    50: '#649c60',
    500: '#12731f',
    950: '#000000',
  },
}
SCSS
$custom: #12731f;
$custom-light: #649c60;
$custom-dark: #000000;
JSON
{
  "hex": "#12731f",
  "rgb": {
    "r": 18,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 128.041,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48536,
    "c": 0.14653,
    "h": 144.4
  },
  "luminance": 0.12489
}

Semantic roles & 50–950 ramp

primary
#12731F
secondary
#AA379A
accent
#38D7F0
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #12731F

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

Preview Lab → · Contrast checker → · Palette generator →

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