#125D31#125D31

#125D31 is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.3% C 0.101 H 152.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#125D31
RGBrgb(18, 93, 49)
HSLhsl(145, 68%, 22%)
HSVhsv(145, 81%, 36%)
CMYKcmyk(80.6%, 0%, 47.3%, 63.5%)
CIE-LABlab(34.35, -33.28, 19.05)
CIE-LCHlch(34.35, 38.35, 150.21°)
OKLaboklab(42.28% -0.0895 0.047)
OKLCHoklch(42.28% 0.101 152.3)
XYZxyz(4.7178, 8.1785, 4.2351)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125D31 #5D123E
analogous
#195D12 #125D31 #125D57
triadic
#125D31 #31125D #5D3112
tetradic
#125D31 #12195D #5D123E #5D5712
square
#125D31 #12195D #5D123E #5D5712
split-complementary
#125D31 #57125D #5D1219
monochromatic
#051A0E #082A16 #125D31 #1C904C #26C467

Accessibility & contrast

On white

7.97
#125D31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#125D31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125D31
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125D31#FFFFFF#000000##FFFFFF
##125D311.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D552E
Deuteranopia (green-blind)
#544E34
Tritanopia (blue-blind)
#005C52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #125d31;
/* rgb */ color: rgb(18, 93, 49);
/* oklch */ color: oklch(42.3% 0.101 152.3);
Tailwind
colors: {
  custom: {
    50: '#5d8c69',
    500: '#125d31',
    950: '#000000',
  },
}
SCSS
$custom: #125d31;
$custom-light: #5d8c69;
$custom-dark: #000000;
JSON
{
  "hex": "#125d31",
  "rgb": {
    "r": 18,
    "g": 93,
    "b": 49
  },
  "hsl": {
    "h": 144.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4228,
    "c": 0.1011,
    "h": 152.3
  },
  "luminance": 0.08179
}

Semantic roles & 50–950 ramp

primary
#125D31
secondary
#95356E
accent
#3DA3EA
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #125D31

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

Preview Lab → · Contrast checker → · Palette generator →

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