#125F2F#125F2F

#125F2F is a dark, moderate green. Relative luminance 0.085; OKLCH L 42.8% C 0.106 H 150.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#125F2F
RGBrgb(18, 95, 47)
HSLhsl(143, 68%, 22%)
HSVhsv(143, 81%, 37%)
CMYKcmyk(81.1%, 0%, 50.5%, 62.7%)
CIE-LABlab(35.04, -34.48, 21.09)
CIE-LCHlch(35.04, 40.42, 148.55°)
OKLaboklab(42.84% -0.0927 0.0516)
OKLCHoklch(42.84% 0.106 150.9)
XYZxyz(4.8543, 8.5177, 4.0770)
Luminance0.0852 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125F2F #5F1242
analogous
#1C5F12 #125F2F #125F56
triadic
#125F2F #2F125F #5F2F12
tetradic
#125F2F #121C5F #5F1242 #5F5612
square
#125F2F #121C5F #5F1242 #5F5612
split-complementary
#125F2F #56125F #5F121C
monochromatic
#051A0D #082C16 #125F2F #1C9248 #25C662

Accessibility & contrast

On white

7.77
#125F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#125F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125F2F
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125F2F#FFFFFF#000000##FFFFFF
##125F2F1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #125f2f;
/* rgb */ color: rgb(18, 95, 47);
/* oklch */ color: oklch(42.8% 0.106 150.9);
Tailwind
colors: {
  custom: {
    50: '#5e8d68',
    500: '#125f2f',
    950: '#000000',
  },
}
SCSS
$custom: #125f2f;
$custom-light: #5e8d68;
$custom-dark: #000000;
JSON
{
  "hex": "#125f2f",
  "rgb": {
    "r": 18,
    "g": 95,
    "b": 47
  },
  "hsl": {
    "h": 142.597,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42836,
    "c": 0.10607,
    "h": 150.9
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#125F2F
secondary
#973672
accent
#3DA9EB
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #125F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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