#12751A#12751A

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

Color values

HEX#12751A
RGBrgb(18, 117, 26)
HSLhsl(125, 73%, 26%)
HSVhsv(125, 85%, 46%)
CMYKcmyk(84.6%, 0%, 77.8%, 54.1%)
CIE-LABlab(42.65, -45.27, 39.96)
CIE-LCHlch(42.65, 60.38, 138.56°)
OKLaboklab(49.08% -0.1225 0.0903)
OKLCHoklch(49.08% 0.152 143.6)
XYZxyz(6.7967, 12.9249, 3.1136)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12751A #75126D
analogous
#3C7512 #12751A #12754C
triadic
#12751A #1A1275 #751A12
tetradic
#12751A #123C75 #75126D #754C12
square
#12751A #123C75 #75126D #754C12
split-complementary
#12751A #4C1275 #75123C
monochromatic
#041B06 #0A400E #12751A #1AAA26 #24DD33

Accessibility & contrast

On white

5.86
#12751A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #12751A
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12751A#FFFFFF#000000##FFFFFF
##12751A1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776908
Deuteranopia (green-blind)
#6D6224
Tritanopia (blue-blind)
#007164
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #12751a;
/* rgb */ color: rgb(18, 117, 26);
/* oklch */ color: oklch(49.1% 0.152 143.6);
Tailwind
colors: {
  custom: {
    50: '#659e5d',
    500: '#12751a',
    950: '#000000',
  },
}
SCSS
$custom: #12751a;
$custom-light: #659e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#12751a",
  "rgb": {
    "r": 18,
    "g": 117,
    "b": 26
  },
  "hsl": {
    "h": 124.848,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.4908,
    "c": 0.15216,
    "h": 143.6
  },
  "luminance": 0.12926
}

Semantic roles & 50–950 ramp

primary
#12751A
secondary
#AC37A2
accent
#38E1F0
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #12751A

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

Preview Lab → · Contrast checker → · Palette generator →

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