#125227#125227

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

Color values

HEX#125227
RGBrgb(18, 82, 39)
HSLhsl(140, 64%, 20%)
HSVhsv(140, 78%, 32%)
CMYKcmyk(78%, 0%, 52.4%, 67.8%)
CIE-LABlab(30.18, -30.63, 19.58)
CIE-LCHlch(30.18, 36.35, 147.41°)
OKLaboklab(38.78% -0.0824 0.0478)
OKLCHoklch(38.78% 0.095 149.9)
XYZxyz(3.6327, 6.3093, 2.9454)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125227 #52123D
analogous
#1D5212 #125227 #125247
triadic
#125227 #271252 #522712
tetradic
#125227 #121D52 #52123D #524712
square
#125227 #121D52 #52123D #524712
split-complementary
#125227 #471252 #52121D
monochromatic
#06190C #07200F #125227 #1D843F #28B657

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##125227#FFFFFF#000000##FFFFFF
##1252271.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)
#534A24
Deuteranopia (green-blind)
#4B452A
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #125227;
/* rgb */ color: rgb(18, 82, 39);
/* oklch */ color: oklch(38.8% 0.095 149.9);
Tailwind
colors: {
  custom: {
    50: '#5b8362',
    500: '#125227',
    950: '#000000',
  },
}
SCSS
$custom: #125227;
$custom-light: #5b8362;
$custom-dark: #000000;
JSON
{
  "hex": "#125227",
  "rgb": {
    "r": 18,
    "g": 82,
    "b": 39
  },
  "hsl": {
    "h": 139.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38777,
    "c": 0.09526,
    "h": 149.9
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#125227
secondary
#8B356F
accent
#41B0E7
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #125227

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

Preview Lab → · Contrast checker → · Palette generator →

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