#125218#125218

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

Color values

HEX#125218
RGBrgb(18, 82, 24)
HSLhsl(126, 64%, 20%)
HSVhsv(126, 78%, 32%)
CMYKcmyk(78%, 0%, 70.7%, 67.8%)
CIE-LABlab(29.98, -32.95, 27.54)
CIE-LCHlch(29.98, 42.94, 140.11°)
OKLaboklab(38.55% -0.0891 0.0639)
OKLCHoklch(38.55% 0.11 144.4)
XYZxyz(3.4314, 6.2288, 1.8854)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125218 #52124C
analogous
#2C5212 #125218 #125238
triadic
#125218 #181252 #521812
tetradic
#125218 #122C52 #52124C #523812
square
#125218 #122C52 #52124C #523812
split-complementary
#125218 #381252 #52122C
monochromatic
#061907 #072009 #125218 #1D8427 #28B635

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##125218#FFFFFF#000000##FFFFFF
##1252181.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)
#544A11
Deuteranopia (green-blind)
#4C451D
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #125218;
/* rgb */ color: rgb(18, 82, 24);
/* oklch */ color: oklch(38.6% 0.110 144.4);
Tailwind
colors: {
  custom: {
    50: '#5b8358',
    500: '#125218',
    950: '#000000',
  },
}
SCSS
$custom: #125218;
$custom-light: #5b8358;
$custom-dark: #000000;
JSON
{
  "hex": "#125218",
  "rgb": {
    "r": 18,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 125.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.3855,
    "c": 0.10968,
    "h": 144.4
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

primary
#125218
secondary
#8B3583
accent
#41D7E7
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #125218

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

Preview Lab → · Contrast checker → · Palette generator →

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