#125312#125312

#125312 is a dark, moderate green. Relative luminance 0.064; OKLCH L 38.8% C 0.116 H 142.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#125312
RGBrgb(18, 83, 18)
HSLhsl(120, 64%, 20%)
HSVhsv(120, 78%, 33%)
CMYKcmyk(78.3%, 0%, 78.3%, 67.5%)
CIE-LABlab(30.30, -33.99, 30.66)
CIE-LCHlch(30.30, 45.77, 137.95°)
OKLaboklab(38.8% -0.0923 0.0697)
OKLCHoklch(38.8% 0.116 142.9)
XYZxyz(3.4517, 6.3584, 1.6175)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125312 #531253
analogous
#335312 #125312 #125333
triadic
#125312 #121253 #531212
tetradic
#125312 #123353 #531253 #533312
square
#125312 #123353 #531253 #533312
split-complementary
#125312 #331253 #531233
monochromatic
#051905 #072107 #125312 #1D851D #28B828

Accessibility & contrast

On white

9.24
#125312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#125312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125312
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125312#FFFFFF#000000##FFFFFF
##1253121.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A07
Deuteranopia (green-blind)
#4E4519
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #125312;
/* rgb */ color: rgb(18, 83, 18);
/* oklch */ color: oklch(38.8% 0.116 142.9);
Tailwind
colors: {
  custom: {
    50: '#5c8454',
    500: '#125312',
    950: '#000000',
  },
}
SCSS
$custom: #125312;
$custom-light: #5c8454;
$custom-dark: #000000;
JSON
{
  "hex": "#125312",
  "rgb": {
    "r": 18,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38795,
    "c": 0.11562,
    "h": 142.9
  },
  "luminance": 0.06359
}

Semantic roles & 50–950 ramp

primary
#125312
secondary
#8C358C
accent
#40E7E7
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #125312

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

Preview Lab → · Contrast checker → · Palette generator →

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