#125217#125217

#125217 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.5% C 0.111 H 144.1°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#125217
RGBrgb(18, 82, 23)
HSLhsl(125, 64%, 20%)
HSVhsv(125, 78%, 32%)
CMYKcmyk(78%, 0%, 72%, 67.8%)
CIE-LABlab(29.97, -33.07, 28.02)
CIE-LCHlch(29.97, 43.34, 139.73°)
OKLaboklab(38.54% -0.0895 0.0648)
OKLCHoklch(38.54% 0.111 144.1)
XYZxyz(3.4212, 6.2247, 1.8316)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125217 #52124D
analogous
#2D5212 #125217 #125237
triadic
#125217 #171252 #521712
tetradic
#125217 #122D52 #52124D #523712
square
#125217 #122D52 #52124D #523712
split-complementary
#125217 #371252 #52122D
monochromatic
#061907 #072009 #125217 #1D8425 #28B633

Accessibility & contrast

On white

9.35
#125217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#125217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125217
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125217#FFFFFF#000000##FFFFFF
##1252171.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0F
Deuteranopia (green-blind)
#4C451C
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #125217;
/* rgb */ color: rgb(18, 82, 23);
/* oklch */ color: oklch(38.5% 0.111 144.1);
Tailwind
colors: {
  custom: {
    50: '#5b8357',
    500: '#125217',
    950: '#000000',
  },
}
SCSS
$custom: #125217;
$custom-light: #5b8357;
$custom-dark: #000000;
JSON
{
  "hex": "#125217",
  "rgb": {
    "r": 18,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 124.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38539,
    "c": 0.1105,
    "h": 144.1
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#125217
secondary
#8B3584
accent
#41DAE7
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #125217

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

Preview Lab → · Contrast checker → · Palette generator →

#125217 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva