#125817#125817

#125817 is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.4% C 0.118 H 143.9°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#125817
RGBrgb(18, 88, 23)
HSLhsl(124, 66%, 21%)
HSVhsv(124, 80%, 35%)
CMYKcmyk(79.5%, 0%, 73.9%, 65.5%)
CIE-LABlab(32.19, -35.35, 30.41)
CIE-LCHlch(32.19, 46.63, 139.30°)
OKLaboklab(40.38% -0.0957 0.0699)
OKLCHoklch(40.38% 0.118 143.9)
XYZxyz(3.8936, 7.1695, 1.9891)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125817 #581253
analogous
#305812 #125817 #12583A
triadic
#125817 #171258 #581712
tetradic
#125817 #123058 #581253 #583A12
square
#125817 #123058 #581253 #583A12
split-complementary
#125817 #3A1258 #581230
monochromatic
#051907 #08250A #125817 #1C8B24 #27BE32

Accessibility & contrast

On white

8.63
#125817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#125817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125817
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125817#FFFFFF#000000##FFFFFF
##1258171.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0E
Deuteranopia (green-blind)
#524A1D
Tritanopia (blue-blind)
#00554B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #125817;
/* rgb */ color: rgb(18, 88, 23);
/* oklch */ color: oklch(40.4% 0.118 143.9);
Tailwind
colors: {
  custom: {
    50: '#5d8858',
    500: '#125817',
    950: '#000000',
  },
}
SCSS
$custom: #125817;
$custom-light: #5d8858;
$custom-dark: #000000;
JSON
{
  "hex": "#125817",
  "rgb": {
    "r": 18,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 124.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40378,
    "c": 0.11849,
    "h": 143.9
  },
  "luminance": 0.0717
}

Semantic roles & 50–950 ramp

primary
#125817
secondary
#91358A
accent
#3FDDE9
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #125817

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

Preview Lab → · Contrast checker → · Palette generator →

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