#12702A#12702A

#12702A is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.8% C 0.134 H 146.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#12702A
RGBrgb(18, 112, 42)
HSLhsl(135, 72%, 25%)
HSVhsv(135, 84%, 44%)
CMYKcmyk(83.9%, 0%, 62.5%, 56.1%)
CIE-LABlab(41.03, -41.76, 31.06)
CIE-LCHlch(41.03, 52.04, 143.36°)
OKLaboklab(47.78% -0.1123 0.0733)
OKLCHoklch(47.78% 0.134 146.9)
XYZxyz(6.4610, 11.8833, 4.1432)
Luminance0.1188 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12702A #701258
analogous
#297012 #12702A #127059
triadic
#12702A #2A1270 #702A12
tetradic
#12702A #122970 #701258 #705912
square
#12702A #122970 #701258 #705912
split-complementary
#12702A #591270 #701229
monochromatic
#041A0A #0A3B16 #12702A #1AA53E #23D952

Accessibility & contrast

On white

6.22
#12702A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#12702A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12702A
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12702A#FFFFFF#000000##FFFFFF
##12702A1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726523
Deuteranopia (green-blind)
#675E30
Tritanopia (blue-blind)
#006D61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #12702a;
/* rgb */ color: rgb(18, 112, 42);
/* oklch */ color: oklch(47.8% 0.134 146.9);
Tailwind
colors: {
  custom: {
    50: '#639a66',
    500: '#12702a',
    950: '#000000',
  },
}
SCSS
$custom: #12702a;
$custom-light: #639a66;
$custom-dark: #000000;
JSON
{
  "hex": "#12702a",
  "rgb": {
    "r": 18,
    "g": 112,
    "b": 42
  },
  "hsl": {
    "h": 135.319,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.4778,
    "c": 0.13412,
    "h": 146.9
  },
  "luminance": 0.11884
}

Semantic roles & 50–950 ramp

primary
#12702A
secondary
#A7378A
accent
#39C0EF
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #12702A

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

Preview Lab → · Contrast checker → · Palette generator →

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