#125F2A#125F2A

#125F2A is a dark, moderate green. Relative luminance 0.085; OKLCH L 42.7% C 0.111 H 148.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#125F2A
RGBrgb(18, 95, 42)
HSLhsl(139, 68%, 22%)
HSVhsv(139, 81%, 37%)
CMYKcmyk(81.1%, 0%, 55.8%, 62.7%)
CIE-LABlab(34.96, -35.38, 23.82)
CIE-LCHlch(34.96, 42.65, 146.05°)
OKLaboklab(42.75% -0.0951 0.0575)
OKLCHoklch(42.75% 0.111 148.9)
XYZxyz(4.7592, 8.4796, 3.5759)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125F2A #5F1247
analogous
#215F12 #125F2A #125F51
triadic
#125F2A #2A125F #5F2A12
tetradic
#125F2A #12215F #5F1247 #5F5112
square
#125F2A #12215F #5F1247 #5F5112
split-complementary
#125F2A #51125F #5F1221
monochromatic
#051A0B #082C13 #125F2A #1C9241 #25C657

Accessibility & contrast

On white

7.79
#125F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #125F2A
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125F2A#FFFFFF#000000##FFFFFF
##125F2A1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605625
Deuteranopia (green-blind)
#57502E
Tritanopia (blue-blind)
#005D53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #125f2a;
/* rgb */ color: rgb(18, 95, 42);
/* oklch */ color: oklch(42.7% 0.111 148.9);
Tailwind
colors: {
  custom: {
    50: '#5e8d65',
    500: '#125f2a',
    950: '#000000',
  },
}
SCSS
$custom: #125f2a;
$custom-light: #5e8d65;
$custom-dark: #000000;
JSON
{
  "hex": "#125f2a",
  "rgb": {
    "r": 18,
    "g": 95,
    "b": 42
  },
  "hsl": {
    "h": 138.701,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42749,
    "c": 0.1111,
    "h": 148.9
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

primary
#125F2A
secondary
#973679
accent
#3DB5EB
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C05
muted
#797D7A

Preview Lab

Preview with #125F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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