#125828#125828

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

Color values

HEX#125828
RGBrgb(18, 88, 40)
HSLhsl(139, 66%, 21%)
HSVhsv(139, 80%, 35%)
CMYKcmyk(79.5%, 0%, 54.5%, 65.5%)
CIE-LABlab(32.39, -32.93, 21.77)
CIE-LCHlch(32.39, 39.47, 146.53°)
OKLaboklab(40.61% -0.0885 0.0528)
OKLCHoklch(40.61% 0.103 149.2)
XYZxyz(4.1218, 7.2608, 3.1913)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125828 #581242
analogous
#1F5812 #125828 #12584B
triadic
#125828 #281258 #582812
tetradic
#125828 #121F58 #581242 #584B12
square
#125828 #121F58 #581242 #584B12
split-complementary
#125828 #4B1258 #58121F
monochromatic
#05190C #082511 #125828 #1C8B3F #27BE56

Accessibility & contrast

On white

8.56
#125828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #125828
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125828#FFFFFF#000000##FFFFFF
##1258281.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #125828;
/* rgb */ color: rgb(18, 88, 40);
/* oklch */ color: oklch(40.6% 0.103 149.2);
Tailwind
colors: {
  custom: {
    50: '#5c8863',
    500: '#125828',
    950: '#000000',
  },
}
SCSS
$custom: #125828;
$custom-light: #5c8863;
$custom-dark: #000000;
JSON
{
  "hex": "#125828",
  "rgb": {
    "r": 18,
    "g": 88,
    "b": 40
  },
  "hsl": {
    "h": 138.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40613,
    "c": 0.10307,
    "h": 149.2
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#125828
secondary
#913574
accent
#3FB3E9
background
#F5F8F5
surface
#E9F0EA
border
#C5CBC6
text
#050B05
muted
#797C79

Preview Lab

Preview with #125828

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

Preview Lab → · Contrast checker → · Palette generator →

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