#12731C#12731C

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

Color values

HEX#12731C
RGBrgb(18, 115, 28)
HSLhsl(126, 73%, 26%)
HSVhsv(126, 84%, 45%)
CMYKcmyk(84.3%, 0%, 75.7%, 54.9%)
CIE-LABlab(41.96, -44.42, 38.47)
CIE-LCHlch(41.96, 58.77, 139.10°)
OKLaboklab(48.51% -0.1201 0.0874)
OKLCHoklch(48.51% 0.149 143.9)
XYZxyz(6.5893, 12.4731, 3.1587)
Luminance0.1247 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12731C #731269
analogous
#387312 #12731C #12734C
triadic
#12731C #1C1273 #731C12
tetradic
#12731C #123873 #731269 #734C12
square
#12731C #123873 #731269 #734C12
split-complementary
#12731C #4C1273 #731238
monochromatic
#041A06 #0A3E0F #12731C #1AA829 #23DD36

Accessibility & contrast

On white

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

On black

3.49
#12731C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##12731C#FFFFFF#000000##FFFFFF
##12731C1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670D
Deuteranopia (green-blind)
#6B6025
Tritanopia (blue-blind)
#007062
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #12731c;
/* rgb */ color: rgb(18, 115, 28);
/* oklch */ color: oklch(48.5% 0.149 143.9);
Tailwind
colors: {
  custom: {
    50: '#659c5e',
    500: '#12731c',
    950: '#000000',
  },
}
SCSS
$custom: #12731c;
$custom-light: #659c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#12731c",
  "rgb": {
    "r": 18,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 126.186,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48509,
    "c": 0.14855,
    "h": 143.9
  },
  "luminance": 0.12474
}

Semantic roles & 50–950 ramp

primary
#12731C
secondary
#AA379E
accent
#38DDF0
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #12731C

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

Preview Lab → · Contrast checker → · Palette generator →

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