#12642F#12642F

#12642F is a dark, moderate green. Relative luminance 0.094; OKLCH L 44.3% C 0.113 H 150.0°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#12642F
RGBrgb(18, 100, 47)
HSLhsl(141, 69%, 23%)
HSVhsv(141, 82%, 39%)
CMYKcmyk(82%, 0%, 53%, 60.8%)
CIE-LABlab(36.83, -36.47, 23.34)
CIE-LCHlch(36.83, 43.30, 147.38°)
OKLaboklab(44.32% -0.098 0.0567)
OKLCHoklch(44.32% 0.113 150)
XYZxyz(5.3193, 9.4475, 4.2320)
Luminance0.0945 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12642F #641247
analogous
#1E6412 #12642F #126458
triadic
#12642F #2F1264 #642F12
tetradic
#12642F #121E64 #641247 #645812
square
#12642F #121E64 #641247 #645812
split-complementary
#12642F #581264 #64121E
monochromatic
#051A0C #093017 #12642F #1B9847 #25CC60

Accessibility & contrast

On white

7.27
#12642F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#12642F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12642F
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12642F#FFFFFF#000000##FFFFFF
##12642F1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655B2B
Deuteranopia (green-blind)
#5B5433
Tritanopia (blue-blind)
#006258
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #12642f;
/* rgb */ color: rgb(18, 100, 47);
/* oklch */ color: oklch(44.3% 0.113 150.0);
Tailwind
colors: {
  custom: {
    50: '#5f9168',
    500: '#12642f',
    950: '#000000',
  },
}
SCSS
$custom: #12642f;
$custom-light: #5f9168;
$custom-dark: #000000;
JSON
{
  "hex": "#12642f",
  "rgb": {
    "r": 18,
    "g": 100,
    "b": 47
  },
  "hsl": {
    "h": 141.22,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.4432,
    "c": 0.11319,
    "h": 150
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

primary
#12642F
secondary
#9C3678
accent
#3BAEEC
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#050D06
muted
#7A7E7A

Preview Lab

Preview with #12642F

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

Preview Lab → · Contrast checker → · Palette generator →

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