#125F31#125F31

#125F31 is a dark, moderate green. Relative luminance 0.085; OKLCH L 42.9% C 0.104 H 151.8°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#125F31
RGBrgb(18, 95, 49)
HSLhsl(144, 68%, 22%)
HSVhsv(144, 81%, 37%)
CMYKcmyk(81.1%, 0%, 48.4%, 62.7%)
CIE-LABlab(35.07, -34.10, 19.98)
CIE-LCHlch(35.07, 39.52, 149.64°)
OKLaboklab(42.87% -0.0917 0.0491)
OKLCHoklch(42.87% 0.104 151.8)
XYZxyz(4.8956, 8.5342, 4.2944)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125F31 #5F1240
analogous
#195F12 #125F31 #125F58
triadic
#125F31 #31125F #5F3112
tetradic
#125F31 #12195F #5F1240 #5F5812
square
#125F31 #12195F #5F1240 #5F5812
split-complementary
#125F31 #58125F #5F1219
monochromatic
#051A0D #082C16 #125F31 #1C924C #25C666

Accessibility & contrast

On white

7.76
#125F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#125F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125F31
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125F31#FFFFFF#000000##FFFFFF
##125F311.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F562E
Deuteranopia (green-blind)
#565034
Tritanopia (blue-blind)
#005D54
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #125f31;
/* rgb */ color: rgb(18, 95, 49);
/* oklch */ color: oklch(42.9% 0.104 151.8);
Tailwind
colors: {
  custom: {
    50: '#5e8d6a',
    500: '#125f31',
    950: '#000000',
  },
}
SCSS
$custom: #125f31;
$custom-light: #5e8d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#125f31",
  "rgb": {
    "r": 18,
    "g": 95,
    "b": 49
  },
  "hsl": {
    "h": 144.156,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.10402,
    "h": 151.8
  },
  "luminance": 0.08535
}

Semantic roles & 50–950 ramp

primary
#125F31
secondary
#973670
accent
#3DA5EB
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #125F31

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

Preview Lab → · Contrast checker → · Palette generator →

#125F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva