#12751C#12751C

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

Color values

HEX#12751C
RGBrgb(18, 117, 28)
HSLhsl(126, 73%, 26%)
HSVhsv(126, 85%, 46%)
CMYKcmyk(84.6%, 0%, 76.1%, 54.1%)
CIE-LABlab(42.66, -45.09, 39.20)
CIE-LCHlch(42.66, 59.75, 139.00°)
OKLaboklab(49.1% -0.1219 0.0889)
OKLCHoklch(49.1% 0.151 143.9)
XYZxyz(6.8199, 12.9342, 3.2355)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12751C #75126B
analogous
#3A7512 #12751C #12754E
triadic
#12751C #1C1275 #751C12
tetradic
#12751C #123A75 #75126B #754E12
square
#12751C #123A75 #75126B #754E12
split-complementary
#12751C #4E1275 #75123A
monochromatic
#041B06 #0A400F #12751C #1AAA29 #24DD37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12751C#FFFFFF#000000##FFFFFF
##12751C1.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)
#77690C
Deuteranopia (green-blind)
#6D6225
Tritanopia (blue-blind)
#007264
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #12751c;
/* rgb */ color: rgb(18, 117, 28);
/* oklch */ color: oklch(49.1% 0.151 143.9);
Tailwind
colors: {
  custom: {
    50: '#659e5e',
    500: '#12751c',
    950: '#000000',
  },
}
SCSS
$custom: #12751c;
$custom-light: #659e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#12751c",
  "rgb": {
    "r": 18,
    "g": 117,
    "b": 28
  },
  "hsl": {
    "h": 126.061,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49096,
    "c": 0.15092,
    "h": 143.9
  },
  "luminance": 0.12935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12751C

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

Preview Lab → · Contrast checker → · Palette generator →

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