#12642B#12642B

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

Color values

HEX#12642B
RGBrgb(18, 100, 43)
HSLhsl(138, 69%, 23%)
HSVhsv(138, 82%, 39%)
CMYKcmyk(82%, 0%, 57%, 60.8%)
CIE-LABlab(36.77, -37.15, 25.48)
CIE-LCHlch(36.77, 45.05, 145.56°)
OKLaboklab(44.25% -0.0998 0.0612)
OKLCHoklch(44.25% 0.117 148.5)
XYZxyz(5.2422, 9.4167, 3.8264)
Luminance0.0942 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12642B #64124B
analogous
#226412 #12642B #126454
triadic
#12642B #2B1264 #642B12
tetradic
#12642B #122264 #64124B #645412
square
#12642B #122264 #64124B #645412
split-complementary
#12642B #541264 #641222
monochromatic
#051A0B #093015 #12642B #1B9841 #25CC58

Accessibility & contrast

On white

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

On black

2.88
#12642B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##12642B#FFFFFF#000000##FFFFFF
##12642B1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655A26
Deuteranopia (green-blind)
#5C542F
Tritanopia (blue-blind)
#006257
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #12642b;
/* rgb */ color: rgb(18, 100, 43);
/* oklch */ color: oklch(44.3% 0.117 148.5);
Tailwind
colors: {
  custom: {
    50: '#5f9166',
    500: '#12642b',
    950: '#000000',
  },
}
SCSS
$custom: #12642b;
$custom-light: #5f9166;
$custom-dark: #000000;
JSON
{
  "hex": "#12642b",
  "rgb": {
    "r": 18,
    "g": 100,
    "b": 43
  },
  "hsl": {
    "h": 138.293,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44254,
    "c": 0.11711,
    "h": 148.5
  },
  "luminance": 0.09417
}

Semantic roles & 50–950 ramp

primary
#12642B
secondary
#9C367D
accent
#3BB6EC
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#050D06
muted
#7A7E7A

Preview Lab

Preview with #12642B

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

Preview Lab → · Contrast checker → · Palette generator →

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