#125F2C#125F2C

#125F2C is a dark, moderate green. Relative luminance 0.085; OKLCH L 42.8% C 0.109 H 149.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#125F2C
RGBrgb(18, 95, 44)
HSLhsl(140, 68%, 22%)
HSVhsv(140, 81%, 37%)
CMYKcmyk(81.1%, 0%, 53.7%, 62.7%)
CIE-LABlab(34.99, -35.03, 22.74)
CIE-LCHlch(34.99, 41.76, 147.02°)
OKLaboklab(42.78% -0.0941 0.0551)
OKLCHoklch(42.78% 0.109 149.6)
XYZxyz(4.7959, 8.4943, 3.7692)
Luminance0.0849 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#125F2C #5F1245
analogous
#1E5F12 #125F2C #125F53
triadic
#125F2C #2C125F #5F2C12
tetradic
#125F2C #121E5F #5F1245 #5F5312
square
#125F2C #121E5F #5F1245 #5F5312
split-complementary
#125F2C #53125F #5F121E
monochromatic
#051A0C #082C14 #125F2C #1C9244 #25C65C

Accessibility & contrast

On white

7.78
#125F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#125F2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #125F2C
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##125F2C#FFFFFF#000000##FFFFFF
##125F2C1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605628
Deuteranopia (green-blind)
#575030
Tritanopia (blue-blind)
#005D53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #125f2c;
/* rgb */ color: rgb(18, 95, 44);
/* oklch */ color: oklch(42.8% 0.109 149.6);
Tailwind
colors: {
  custom: {
    50: '#5e8d66',
    500: '#125f2c',
    950: '#000000',
  },
}
SCSS
$custom: #125f2c;
$custom-light: #5e8d66;
$custom-dark: #000000;
JSON
{
  "hex": "#125f2c",
  "rgb": {
    "r": 18,
    "g": 95,
    "b": 44
  },
  "hsl": {
    "h": 140.26,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42782,
    "c": 0.1091,
    "h": 149.6
  },
  "luminance": 0.08495
}

Semantic roles & 50–950 ramp

primary
#125F2C
secondary
#973676
accent
#3DB0EB
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #125F2C

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

Preview Lab → · Contrast checker → · Palette generator →

#125F2C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva