#125A1F#125A1F

#125A1F is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.1% C 0.115 H 145.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#125A1F
RGBrgb(18, 90, 31)
HSLhsl(131, 67%, 21%)
HSVhsv(131, 80%, 35%)
CMYKcmyk(80%, 0%, 65.6%, 64.7%)
CIE-LABlab(33.00, -35.12, 27.40)
CIE-LCHlch(33.00, 44.55, 142.04°)
OKLaboklab(41.08% -0.0947 0.0644)
OKLCHoklch(41.08% 0.115 145.8)
XYZxyz(4.1526, 7.5394, 2.5324)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125A1F #5A124D
analogous
#295A12 #125A1F #125A43
triadic
#125A1F #1F125A #5A1F12
tetradic
#125A1F #12295A #5A124D #5A4312
square
#125A1F #12295A #5A124D #5A4312
split-complementary
#125A1F #43125A #5A1229
monochromatic
#051A09 #08270D #125A1F #1C8D31 #26C042

Accessibility & contrast

On white

8.37
#125A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#125A1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125A1F
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125A1F#FFFFFF#000000##FFFFFF
##125A1F1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5119
Deuteranopia (green-blind)
#534B24
Tritanopia (blue-blind)
#00584D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #125a1f;
/* rgb */ color: rgb(18, 90, 31);
/* oklch */ color: oklch(41.1% 0.115 145.8);
Tailwind
colors: {
  custom: {
    50: '#5d895d',
    500: '#125a1f',
    950: '#000000',
  },
}
SCSS
$custom: #125a1f;
$custom-light: #5d895d;
$custom-dark: #000000;
JSON
{
  "hex": "#125a1f",
  "rgb": {
    "r": 18,
    "g": 90,
    "b": 31
  },
  "hsl": {
    "h": 130.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.4108,
    "c": 0.11453,
    "h": 145.8
  },
  "luminance": 0.0754
}

Semantic roles & 50–950 ramp

primary
#125A1F
secondary
#933582
accent
#3ECBEA
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #125A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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