#0C511C#0C511C

#0C511C is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.2% C 0.107 H 146.5°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#0C511C
RGBrgb(12, 81, 28)
HSLhsl(134, 74%, 18%)
HSVhsv(134, 85%, 32%)
CMYKcmyk(85.2%, 0%, 65.4%, 68.2%)
CIE-LABlab(29.53, -33.08, 24.94)
CIE-LCHlch(29.53, 41.42, 142.99°)
OKLaboklab(38.15% -0.089 0.0588)
OKLCHoklch(38.15% 0.107 146.5)
XYZxyz(3.3034, 6.0465, 2.0914)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C511C #510C41
analogous
#1E510C #0C511C #0C513E
triadic
#0C511C #1C0C51 #511C0C
tetradic
#0C511C #0C1E51 #510C41 #513E0C
square
#0C511C #0C1E51 #510C41 #513E0C
split-complementary
#0C511C #3E0C51 #510C1E
monochromatic
#041B09 #041C0A #0C511C #14862E #1CBC41

Accessibility & contrast

On white

9.50
#0C511C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#0C511C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C511C
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C511C#FFFFFF#000000##FFFFFF
##0C511C1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524916
Deuteranopia (green-blind)
#4B4320
Tritanopia (blue-blind)
#004F46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c511c;
/* rgb */ color: rgb(12, 81, 28);
/* oklch */ color: oklch(38.2% 0.107 146.5);
Tailwind
colors: {
  custom: {
    50: '#59835a',
    500: '#0c511c',
    950: '#000000',
  },
}
SCSS
$custom: #0c511c;
$custom-light: #59835a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c511c",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 28
  },
  "hsl": {
    "h": 133.913,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38153,
    "c": 0.1067,
    "h": 146.5
  },
  "luminance": 0.06047
}

Semantic roles & 50–950 ramp

primary
#0C511C
secondary
#8C2C76
accent
#37C6F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C511C

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

Preview Lab → · Contrast checker → · Palette generator →

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