#0C5127#0C5127

#0C5127 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.3% C 0.096 H 151.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#0C5127
RGBrgb(12, 81, 39)
HSLhsl(143, 74%, 18%)
HSVhsv(143, 85%, 32%)
CMYKcmyk(85.2%, 0%, 51.9%, 68.2%)
CIE-LABlab(29.69, -31.21, 18.93)
CIE-LCHlch(29.69, 36.51, 148.76°)
OKLaboklab(38.33% -0.0838 0.0463)
OKLCHoklch(38.33% 0.096 151.1)
XYZxyz(3.4600, 6.1091, 2.9159)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5127 #510C36
analogous
#13510C #0C5127 #0C5149
triadic
#0C5127 #270C51 #51270C
tetradic
#0C5127 #0C1351 #510C36 #51490C
square
#0C5127 #0C1351 #510C36 #51490C
split-complementary
#0C5127 #490C51 #510C13
monochromatic
#041B0D #041C0D #0C5127 #148641 #1CBC5A

Accessibility & contrast

On white

9.45
#0C5127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#0C5127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5127
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5127#FFFFFF#000000##FFFFFF
##0C51271.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514924
Deuteranopia (green-blind)
#49442A
Tritanopia (blue-blind)
#005047
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5127;
/* rgb */ color: rgb(12, 81, 39);
/* oklch */ color: oklch(38.3% 0.096 151.1);
Tailwind
colors: {
  custom: {
    50: '#588362',
    500: '#0c5127',
    950: '#000000',
  },
}
SCSS
$custom: #0c5127;
$custom-light: #588362;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5127",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 39
  },
  "hsl": {
    "h": 143.478,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38333,
    "c": 0.09577,
    "h": 151.1
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#0C5127
secondary
#8C2C67
accent
#37A8F1
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C5127

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

Preview Lab → · Contrast checker → · Palette generator →

#0C5127 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva