#125F28#125F28

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

Color values

HEX#125F28
RGBrgb(18, 95, 40)
HSLhsl(137, 68%, 22%)
HSVhsv(137, 81%, 37%)
CMYKcmyk(81.1%, 0%, 57.9%, 62.7%)
CIE-LABlab(34.93, -35.71, 24.89)
CIE-LCHlch(34.93, 43.52, 145.12°)
OKLaboklab(42.72% -0.096 0.0597)
OKLCHoklch(42.72% 0.113 148.1)
XYZxyz(4.7243, 8.4657, 3.3921)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125F28 #5F1249
analogous
#225F12 #125F28 #125F4F
triadic
#125F28 #28125F #5F2812
tetradic
#125F28 #12225F #5F1249 #5F4F12
square
#125F28 #12225F #5F1249 #5F4F12
split-complementary
#125F28 #4F125F #5F1222
monochromatic
#051A0B #082C12 #125F28 #1C923E #25C653

Accessibility & contrast

On white

7.80
#125F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#125F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125F28
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125F28#FFFFFF#000000##FFFFFF
##125F281.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #125f28;
/* rgb */ color: rgb(18, 95, 40);
/* oklch */ color: oklch(42.7% 0.113 148.1);
Tailwind
colors: {
  custom: {
    50: '#5e8d63',
    500: '#125f28',
    950: '#000000',
  },
}
SCSS
$custom: #125f28;
$custom-light: #5e8d63;
$custom-dark: #000000;
JSON
{
  "hex": "#125f28",
  "rgb": {
    "r": 18,
    "g": 95,
    "b": 40
  },
  "hsl": {
    "h": 137.143,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42716,
    "c": 0.11305,
    "h": 148.1
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

primary
#125F28
secondary
#97367B
accent
#3DB9EB
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C05
muted
#797D7A

Preview Lab

Preview with #125F28

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

Preview Lab → · Contrast checker → · Palette generator →

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