#12731B#12731B

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

Color values

HEX#12731B
RGBrgb(18, 115, 27)
HSLhsl(126, 73%, 26%)
HSVhsv(126, 84%, 45%)
CMYKcmyk(84.3%, 0%, 76.5%, 54.9%)
CIE-LABlab(41.95, -44.51, 38.87)
CIE-LCHlch(41.95, 59.09, 138.87°)
OKLaboklab(48.5% -0.1204 0.0881)
OKLCHoklch(48.5% 0.149 143.8)
XYZxyz(6.5776, 12.4684, 3.0967)
Luminance0.1247 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12731B #73126A
analogous
#397312 #12731B #12734B
triadic
#12731B #1B1273 #731B12
tetradic
#12731B #123973 #73126A #734B12
square
#12731B #123973 #73126A #734B12
split-complementary
#12731B #4B1273 #731239
monochromatic
#041A06 #0A3E0F #12731B #1AA827 #23DD34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#12731B
secondary
#AA379F
accent
#38DFF0
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #12731B

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

Preview Lab → · Contrast checker → · Palette generator →

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