#12731A#12731A

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

Color values

HEX#12731A
RGBrgb(18, 115, 26)
HSLhsl(125, 73%, 26%)
HSVhsv(125, 84%, 45%)
CMYKcmyk(84.3%, 0%, 77.4%, 54.9%)
CIE-LABlab(41.94, -44.60, 39.25)
CIE-LCHlch(41.94, 59.41, 138.65°)
OKLaboklab(48.49% -0.1207 0.0888)
OKLCHoklch(48.49% 0.15 143.7)
XYZxyz(6.5662, 12.4638, 3.0368)
Luminance0.1246 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12731A #73126B
analogous
#3A7312 #12731A #12734A
triadic
#12731A #1A1273 #731A12
tetradic
#12731A #123A73 #73126B #734A12
square
#12731A #123A73 #73126B #734A12
split-complementary
#12731A #4A1273 #73123A
monochromatic
#041A06 #0A3E0E #12731A #1AA826 #23DD32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12731A#FFFFFF#000000##FFFFFF
##12731A1.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)
#756709
Deuteranopia (green-blind)
#6B6024
Tritanopia (blue-blind)
#007062
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #12731a;
/* rgb */ color: rgb(18, 115, 26);
/* oklch */ color: oklch(48.5% 0.150 143.7);
Tailwind
colors: {
  custom: {
    50: '#659c5d',
    500: '#12731a',
    950: '#000000',
  },
}
SCSS
$custom: #12731a;
$custom-light: #659c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#12731a",
  "rgb": {
    "r": 18,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 124.948,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48492,
    "c": 0.14981,
    "h": 143.7
  },
  "luminance": 0.12465
}

Semantic roles & 50–950 ramp

primary
#12731A
secondary
#AA37A0
accent
#38E0F0
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #12731A

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

Preview Lab → · Contrast checker → · Palette generator →

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