#12740F#12740F

#12740F is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.7% C 0.157 H 142.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#12740F
RGBrgb(18, 116, 15)
HSLhsl(118, 77%, 26%)
HSVhsv(118, 87%, 45%)
CMYKcmyk(84.5%, 0%, 87.1%, 54.5%)
CIE-LABlab(42.24, -45.70, 43.21)
CIE-LCHlch(42.24, 62.89, 136.61°)
OKLaboklab(48.72% -0.1242 0.0954)
OKLCHoklch(48.72% 0.157 142.5)
XYZxyz(6.5807, 12.6531, 2.5473)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12740F #710F74
analogous
#44740F #12740F #0F743E
triadic
#12740F #0F1274 #740F12
tetradic
#12740F #0F4474 #710F74 #743E0F
square
#12740F #0F4474 #710F74 #743E0F
split-complementary
#12740F #3E0F74 #740F44
monochromatic
#041B04 #0A3E08 #12740F #1AAA16 #23E01D

Accessibility & contrast

On white

5.95
#12740F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#12740F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12740F
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12740F#FFFFFF#000000##FFFFFF
##12740F1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6D611D
Tritanopia (blue-blind)
#007062
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #12740f;
/* rgb */ color: rgb(18, 116, 15);
/* oklch */ color: oklch(48.7% 0.157 142.5);
Tailwind
colors: {
  custom: {
    50: '#659d58',
    500: '#12740f',
    950: '#000000',
  },
}
SCSS
$custom: #12740f;
$custom-light: #659d58;
$custom-dark: #000000;
JSON
{
  "hex": "#12740f",
  "rgb": {
    "r": 18,
    "g": 116,
    "b": 15
  },
  "hsl": {
    "h": 118.218,
    "s": 77.099,
    "l": 25.686
  },
  "oklch": {
    "l": 0.48715,
    "c": 0.1566,
    "h": 142.5
  },
  "luminance": 0.12654
}

Semantic roles & 50–950 ramp

primary
#12740F
secondary
#A833AC
accent
#34F4EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #12740F

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

Preview Lab → · Contrast checker → · Palette generator →

#12740F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva