#12751D#12751D

#12751D is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.1% C 0.150 H 144.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#12751D
RGBrgb(18, 117, 29)
HSLhsl(127, 73%, 26%)
HSVhsv(127, 85%, 46%)
CMYKcmyk(84.6%, 0%, 75.2%, 54.1%)
CIE-LABlab(42.67, -45.00, 38.80)
CIE-LCHlch(42.67, 59.42, 139.23°)
OKLaboklab(49.1% -0.1216 0.0883)
OKLCHoklch(49.1% 0.15 144)
XYZxyz(6.8320, 12.9390, 3.2996)
Luminance0.1294 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12751D #75126A
analogous
#397512 #12751D #12754F
triadic
#12751D #1D1275 #751D12
tetradic
#12751D #123975 #75126A #754F12
square
#12751D #123975 #75126A #754F12
split-complementary
#12751D #4F1275 #751239
monochromatic
#041B07 #0A4010 #12751D #1AAA2A #24DD39

Accessibility & contrast

On white

5.85
#12751D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#12751D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12751D
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12751D#FFFFFF#000000##FFFFFF
##12751D1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77690E
Deuteranopia (green-blind)
#6D6226
Tritanopia (blue-blind)
#007264
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #12751d;
/* rgb */ color: rgb(18, 117, 29);
/* oklch */ color: oklch(49.1% 0.150 144.0);
Tailwind
colors: {
  custom: {
    50: '#659e5f',
    500: '#12751d',
    950: '#000000',
  },
}
SCSS
$custom: #12751d;
$custom-light: #659e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#12751d",
  "rgb": {
    "r": 18,
    "g": 117,
    "b": 29
  },
  "hsl": {
    "h": 126.667,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49104,
    "c": 0.15028,
    "h": 144
  },
  "luminance": 0.1294
}

Semantic roles & 50–950 ramp

primary
#12751D
secondary
#AC379F
accent
#38DCF0
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #12751D

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

Preview Lab → · Contrast checker → · Palette generator →

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