#125F1F#125F1F

#125F1F is a dark, vivid green. Relative luminance 0.084; OKLCH L 42.6% C 0.121 H 145.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#125F1F
RGBrgb(18, 95, 31)
HSLhsl(130, 68%, 22%)
HSVhsv(130, 81%, 37%)
CMYKcmyk(81.1%, 0%, 67.4%, 62.7%)
CIE-LABlab(34.83, -37.01, 29.47)
CIE-LCHlch(34.83, 47.31, 141.47°)
OKLaboklab(42.59% -0.0998 0.0688)
OKLCHoklch(42.59% 0.121 145.4)
XYZxyz(4.5887, 8.4114, 2.6778)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125F1F #5F1252
analogous
#2C5F12 #125F1F #125F46
triadic
#125F1F #1F125F #5F1F12
tetradic
#125F1F #122C5F #5F1252 #5F4612
square
#125F1F #122C5F #5F1252 #5F4612
split-complementary
#125F1F #46125F #5F122C
monochromatic
#051A08 #082C0E #125F1F #1C9230 #25C641

Accessibility & contrast

On white

7.83
#125F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#125F1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125F1F
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125F1F#FFFFFF#000000##FFFFFF
##125F1F1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615618
Deuteranopia (green-blind)
#585025
Tritanopia (blue-blind)
#005C51
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #125f1f;
/* rgb */ color: rgb(18, 95, 31);
/* oklch */ color: oklch(42.6% 0.121 145.4);
Tailwind
colors: {
  custom: {
    50: '#5f8d5d',
    500: '#125f1f',
    950: '#000000',
  },
}
SCSS
$custom: #125f1f;
$custom-light: #5f8d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#125f1f",
  "rgb": {
    "r": 18,
    "g": 95,
    "b": 31
  },
  "hsl": {
    "h": 130.13,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42591,
    "c": 0.12126,
    "h": 145.4
  },
  "luminance": 0.08412
}

Semantic roles & 50–950 ramp

primary
#125F1F
secondary
#973687
accent
#3DCEEB
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #125F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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