#125B31#125B31

#125B31 is a dark, moderate green. Relative luminance 0.078; OKLCH L 41.7% C 0.098 H 152.9°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#125B31
RGBrgb(18, 91, 49)
HSLhsl(145, 67%, 21%)
HSVhsv(145, 80%, 36%)
CMYKcmyk(80.2%, 0%, 46.2%, 64.3%)
CIE-LABlab(33.63, -32.45, 18.12)
CIE-LCHlch(33.63, 37.16, 150.83°)
OKLaboklab(41.68% -0.0873 0.0448)
OKLCHoklch(41.68% 0.098 152.9)
XYZxyz(4.5445, 7.8320, 4.1774)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125B31 #5B123C
analogous
#185B12 #125B31 #125B56
triadic
#125B31 #31125B #5B3112
tetradic
#125B31 #12185B #5B123C #5B5612
square
#125B31 #12185B #5B123C #5B5612
split-complementary
#125B31 #56125B #5B1218
monochromatic
#051A0E #082815 #125B31 #1C8E4D #26C168

Accessibility & contrast

On white

8.18
#125B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#125B31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125B31
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125B31#FFFFFF#000000##FFFFFF
##125B311.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B532E
Deuteranopia (green-blind)
#524D34
Tritanopia (blue-blind)
#005A51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #125b31;
/* rgb */ color: rgb(18, 91, 49);
/* oklch */ color: oklch(41.7% 0.098 152.9);
Tailwind
colors: {
  custom: {
    50: '#5d8a69',
    500: '#125b31',
    950: '#000000',
  },
}
SCSS
$custom: #125b31;
$custom-light: #5d8a69;
$custom-dark: #000000;
JSON
{
  "hex": "#125b31",
  "rgb": {
    "r": 18,
    "g": 91,
    "b": 49
  },
  "hsl": {
    "h": 145.479,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41684,
    "c": 0.09816,
    "h": 152.9
  },
  "luminance": 0.07833
}

Semantic roles & 50–950 ramp

primary
#125B31
secondary
#93356B
accent
#3EA1EA
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #125B31

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

Preview Lab → · Contrast checker → · Palette generator →

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