#125228#125228

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

Color values

HEX#125228
RGBrgb(18, 82, 40)
HSLhsl(141, 64%, 20%)
HSVhsv(141, 78%, 32%)
CMYKcmyk(78%, 0%, 51.2%, 67.8%)
CIE-LABlab(30.20, -30.44, 19.02)
CIE-LCHlch(30.20, 35.89, 148.01°)
OKLaboklab(38.8% -0.0819 0.0465)
OKLCHoklch(38.8% 0.094 150.4)
XYZxyz(3.6495, 6.3160, 3.0338)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125228 #52123C
analogous
#1C5212 #125228 #125248
triadic
#125228 #281252 #522812
tetradic
#125228 #121C52 #52123C #524812
square
#125228 #121C52 #52123C #524812
split-complementary
#125228 #481252 #52121C
monochromatic
#06190C #072010 #125228 #1D8440 #28B659

Accessibility & contrast

On white

9.28
#125228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #125228
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125228#FFFFFF#000000##FFFFFF
##1252281.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524A25
Deuteranopia (green-blind)
#4B452B
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #125228;
/* rgb */ color: rgb(18, 82, 40);
/* oklch */ color: oklch(38.8% 0.094 150.4);
Tailwind
colors: {
  custom: {
    50: '#5b8362',
    500: '#125228',
    950: '#000000',
  },
}
SCSS
$custom: #125228;
$custom-light: #5b8362;
$custom-dark: #000000;
JSON
{
  "hex": "#125228",
  "rgb": {
    "r": 18,
    "g": 82,
    "b": 40
  },
  "hsl": {
    "h": 140.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38796,
    "c": 0.0942,
    "h": 150.4
  },
  "luminance": 0.06316
}

Semantic roles & 50–950 ramp

primary
#125228
secondary
#8B356D
accent
#41AEE7
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #125228

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

Preview Lab → · Contrast checker → · Palette generator →

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