#125F2B#125F2B

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

Color values

HEX#125F2B
RGBrgb(18, 95, 43)
HSLhsl(139, 68%, 22%)
HSVhsv(139, 81%, 37%)
CMYKcmyk(81.1%, 0%, 54.7%, 62.7%)
CIE-LABlab(34.98, -35.21, 23.28)
CIE-LCHlch(34.98, 42.21, 146.53°)
OKLaboklab(42.77% -0.0946 0.0563)
OKLCHoklch(42.77% 0.11 149.2)
XYZxyz(4.7773, 8.4869, 3.6714)
Luminance0.0849 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125F2B #5F1246
analogous
#1F5F12 #125F2B #125F52
triadic
#125F2B #2B125F #5F2B12
tetradic
#125F2B #121F5F #5F1246 #5F5212
square
#125F2B #121F5F #5F1246 #5F5212
split-complementary
#125F2B #52125F #5F121F
monochromatic
#051A0C #082C14 #125F2B #1C9242 #25C65A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##125F2B#FFFFFF#000000##FFFFFF
##125F2B1.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)
#605627
Deuteranopia (green-blind)
#57502F
Tritanopia (blue-blind)
#005D53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #125f2b;
/* rgb */ color: rgb(18, 95, 43);
/* oklch */ color: oklch(42.8% 0.110 149.2);
Tailwind
colors: {
  custom: {
    50: '#5e8d65',
    500: '#125f2b',
    950: '#000000',
  },
}
SCSS
$custom: #125f2b;
$custom-light: #5e8d65;
$custom-dark: #000000;
JSON
{
  "hex": "#125f2b",
  "rgb": {
    "r": 18,
    "g": 95,
    "b": 43
  },
  "hsl": {
    "h": 139.481,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42765,
    "c": 0.11011,
    "h": 149.2
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#125F2B
secondary
#973678
accent
#3DB2EB
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #125F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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