#125226#125226

#125226 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.096 H 149.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#125226
RGBrgb(18, 82, 38)
HSLhsl(139, 64%, 20%)
HSVhsv(139, 78%, 32%)
CMYKcmyk(78%, 0%, 53.7%, 67.8%)
CIE-LABlab(30.16, -30.81, 20.15)
CIE-LCHlch(30.16, 36.81, 146.82°)
OKLaboklab(38.76% -0.0829 0.049)
OKLCHoklch(38.76% 0.096 149.4)
XYZxyz(3.6163, 6.3027, 2.8593)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125226 #52123E
analogous
#1E5212 #125226 #125246
triadic
#125226 #261252 #522612
tetradic
#125226 #121E52 #52123E #524612
square
#125226 #121E52 #52123E #524612
split-complementary
#125226 #461252 #52121E
monochromatic
#06190C #07200F #125226 #1D843D #28B655

Accessibility & contrast

On white

9.29
#125226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#125226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125226
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125226#FFFFFF#000000##FFFFFF
##1252261.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A22
Deuteranopia (green-blind)
#4B4529
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #125226;
/* rgb */ color: rgb(18, 82, 38);
/* oklch */ color: oklch(38.8% 0.096 149.4);
Tailwind
colors: {
  custom: {
    50: '#5b8361',
    500: '#125226',
    950: '#000000',
  },
}
SCSS
$custom: #125226;
$custom-light: #5b8361;
$custom-dark: #000000;
JSON
{
  "hex": "#125226",
  "rgb": {
    "r": 18,
    "g": 82,
    "b": 38
  },
  "hsl": {
    "h": 138.75,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38759,
    "c": 0.0963,
    "h": 149.4
  },
  "luminance": 0.06303
}

Semantic roles & 50–950 ramp

primary
#125226
secondary
#8B3570
accent
#41B3E7
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #125226

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

Preview Lab → · Contrast checker → · Palette generator →

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