#12642C#12642C

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

Color values

HEX#12642C
RGBrgb(18, 100, 44)
HSLhsl(139, 69%, 23%)
HSVhsv(139, 82%, 39%)
CMYKcmyk(82%, 0%, 56%, 60.8%)
CIE-LABlab(36.79, -36.99, 24.95)
CIE-LCHlch(36.79, 44.62, 146.00°)
OKLaboklab(44.27% -0.0994 0.0601)
OKLCHoklch(44.27% 0.116 148.8)
XYZxyz(5.2608, 9.4242, 3.9242)
Luminance0.0943 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12642C #64124A
analogous
#216412 #12642C #126455
triadic
#12642C #2C1264 #642C12
tetradic
#12642C #122164 #64124A #645512
square
#12642C #122164 #64124A #645512
split-complementary
#12642C #551264 #641221
monochromatic
#051A0B #093015 #12642C #1B9843 #25CC5A

Accessibility & contrast

On white

7.28
#12642C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12642C
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12642C#FFFFFF#000000##FFFFFF
##12642C1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655A27
Deuteranopia (green-blind)
#5C5430
Tritanopia (blue-blind)
#006257
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #12642c;
/* rgb */ color: rgb(18, 100, 44);
/* oklch */ color: oklch(44.3% 0.116 148.8);
Tailwind
colors: {
  custom: {
    50: '#5f9166',
    500: '#12642c',
    950: '#000000',
  },
}
SCSS
$custom: #12642c;
$custom-light: #5f9166;
$custom-dark: #000000;
JSON
{
  "hex": "#12642c",
  "rgb": {
    "r": 18,
    "g": 100,
    "b": 44
  },
  "hsl": {
    "h": 139.024,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.4427,
    "c": 0.11614,
    "h": 148.8
  },
  "luminance": 0.09425
}

Semantic roles & 50–950 ramp

primary
#12642C
secondary
#9C367C
accent
#3BB4EC
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#050D06
muted
#7A7E7A

Preview Lab

Preview with #12642C

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

Preview Lab → · Contrast checker → · Palette generator →

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