#125212#125212

#125212 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.5% C 0.114 H 142.9°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#125212
RGBrgb(18, 82, 18)
HSLhsl(120, 64%, 20%)
HSVhsv(120, 78%, 32%)
CMYKcmyk(78%, 0%, 78%, 67.8%)
CIE-LABlab(29.93, -33.61, 30.28)
CIE-LCHlch(29.93, 45.24, 137.99°)
OKLaboklab(38.49% -0.0912 0.0689)
OKLCHoklch(38.49% 0.114 142.9)
XYZxyz(3.3757, 6.2065, 1.5922)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125212 #521252
analogous
#325212 #125212 #125232
triadic
#125212 #121252 #521212
tetradic
#125212 #123252 #521252 #523212
square
#125212 #123252 #521252 #523212
split-complementary
#125212 #321252 #521232
monochromatic
#061906 #072007 #125212 #1D841D #28B628

Accessibility & contrast

On white

9.37
#125212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#125212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125212
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125212#FFFFFF#000000##FFFFFF
##1252121.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A08
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #125212;
/* rgb */ color: rgb(18, 82, 18);
/* oklch */ color: oklch(38.5% 0.114 142.9);
Tailwind
colors: {
  custom: {
    50: '#5c8354',
    500: '#125212',
    950: '#000000',
  },
}
SCSS
$custom: #125212;
$custom-light: #5c8354;
$custom-dark: #000000;
JSON
{
  "hex": "#125212",
  "rgb": {
    "r": 18,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38487,
    "c": 0.11432,
    "h": 142.9
  },
  "luminance": 0.06207
}

Semantic roles & 50–950 ramp

primary
#125212
secondary
#8B358B
accent
#41E7E7
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #125212

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

Preview Lab → · Contrast checker → · Palette generator →

#125212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva