#125827#125827

#125827 is a dark, moderate green. Relative luminance 0.073; OKLCH L 40.6% C 0.104 H 148.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#125827
RGBrgb(18, 88, 39)
HSLhsl(138, 66%, 21%)
HSVhsv(138, 80%, 35%)
CMYKcmyk(79.5%, 0%, 55.7%, 65.5%)
CIE-LABlab(32.38, -33.10, 22.32)
CIE-LCHlch(32.38, 39.92, 146.01°)
OKLaboklab(40.6% -0.089 0.0539)
OKLCHoklch(40.6% 0.104 148.8)
XYZxyz(4.1051, 7.2541, 3.1029)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125827 #581243
analogous
#205812 #125827 #12584A
triadic
#125827 #271258 #582712
tetradic
#125827 #122058 #581243 #584A12
square
#125827 #122058 #581243 #584A12
split-complementary
#125827 #4A1258 #581220
monochromatic
#05190B #082510 #125827 #1C8B3E #27BE54

Accessibility & contrast

On white

8.57
#125827 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#125827 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125827
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125827#FFFFFF#000000##FFFFFF
##1258271.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#595023
Deuteranopia (green-blind)
#514A2B
Tritanopia (blue-blind)
#00564D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #125827;
/* rgb */ color: rgb(18, 88, 39);
/* oklch */ color: oklch(40.6% 0.104 148.8);
Tailwind
colors: {
  custom: {
    50: '#5c8862',
    500: '#125827',
    950: '#000000',
  },
}
SCSS
$custom: #125827;
$custom-light: #5c8862;
$custom-dark: #000000;
JSON
{
  "hex": "#125827",
  "rgb": {
    "r": 18,
    "g": 88,
    "b": 39
  },
  "hsl": {
    "h": 138,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40595,
    "c": 0.10409,
    "h": 148.8
  },
  "luminance": 0.07255
}

Semantic roles & 50–950 ramp

primary
#125827
secondary
#913575
accent
#3FB6E9
background
#F5F8F5
surface
#E9F0EA
border
#C5CBC6
text
#050B05
muted
#797C79

Preview Lab

Preview with #125827

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

Preview Lab → · Contrast checker → · Palette generator →

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