#125812#125812

#125812 is a dark, vivid green. Relative luminance 0.072; OKLCH L 40.3% C 0.122 H 142.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#125812
RGBrgb(18, 88, 18)
HSLhsl(120, 66%, 21%)
HSVhsv(120, 80%, 35%)
CMYKcmyk(79.5%, 0%, 79.5%, 65.5%)
CIE-LABlab(32.15, -35.85, 32.55)
CIE-LCHlch(32.15, 48.42, 137.77°)
OKLaboklab(40.33% -0.0973 0.0736)
OKLCHoklch(40.33% 0.122 142.9)
XYZxyz(3.8481, 7.1513, 1.7497)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125812 #581258
analogous
#355812 #125812 #125835
triadic
#125812 #121258 #581212
tetradic
#125812 #123558 #581258 #583512
square
#125812 #123558 #581258 #583512
split-complementary
#125812 #351258 #581235
monochromatic
#051905 #082508 #125812 #1C8B1C #27BE27

Accessibility & contrast

On white

8.64
#125812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#125812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125812
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125812#FFFFFF#000000##FFFFFF
##1258121.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F05
Deuteranopia (green-blind)
#524A19
Tritanopia (blue-blind)
#00554A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #125812;
/* rgb */ color: rgb(18, 88, 18);
/* oklch */ color: oklch(40.3% 0.122 142.9);
Tailwind
colors: {
  custom: {
    50: '#5d8855',
    500: '#125812',
    950: '#000000',
  },
}
SCSS
$custom: #125812;
$custom-light: #5d8855;
$custom-dark: #000000;
JSON
{
  "hex": "#125812",
  "rgb": {
    "r": 18,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40331,
    "c": 0.12203,
    "h": 142.9
  },
  "luminance": 0.07152
}

Semantic roles & 50–950 ramp

primary
#125812
secondary
#913591
accent
#3FE9E9
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #125812

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

Preview Lab → · Contrast checker → · Palette generator →

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