#12731D#12731D

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

Color values

HEX#12731D
RGBrgb(18, 115, 29)
HSLhsl(127, 73%, 26%)
HSVhsv(127, 84%, 45%)
CMYKcmyk(84.3%, 0%, 74.8%, 54.9%)
CIE-LABlab(41.97, -44.33, 38.08)
CIE-LCHlch(41.97, 58.43, 139.34°)
OKLaboklab(48.52% -0.1198 0.0867)
OKLCHoklch(48.52% 0.148 144.1)
XYZxyz(6.6015, 12.4780, 3.2227)
Luminance0.1248 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12731D #731268
analogous
#377312 #12731D #12734D
triadic
#12731D #1D1273 #731D12
tetradic
#12731D #123773 #731268 #734D12
square
#12731D #123773 #731268 #734D12
split-complementary
#12731D #4D1273 #731237
monochromatic
#041A07 #0A3E10 #12731D #1AA82A #23DD38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12731D#FFFFFF#000000##FFFFFF
##12731D1.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)
#75670F
Deuteranopia (green-blind)
#6B6026
Tritanopia (blue-blind)
#007062
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #12731d;
/* rgb */ color: rgb(18, 115, 29);
/* oklch */ color: oklch(48.5% 0.148 144.1);
Tailwind
colors: {
  custom: {
    50: '#649c5f',
    500: '#12731d',
    950: '#000000',
  },
}
SCSS
$custom: #12731d;
$custom-light: #649c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#12731d",
  "rgb": {
    "r": 18,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 126.804,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48517,
    "c": 0.1479,
    "h": 144.1
  },
  "luminance": 0.12479
}

Semantic roles & 50–950 ramp

primary
#12731D
secondary
#AA379D
accent
#38DBF0
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #12731D

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

Preview Lab → · Contrast checker → · Palette generator →

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