#0C5126#0C5126

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

Color values

HEX#0C5126
RGBrgb(12, 81, 38)
HSLhsl(143, 74%, 18%)
HSVhsv(143, 85%, 32%)
CMYKcmyk(85.2%, 0%, 53.1%, 68.2%)
CIE-LABlab(29.67, -31.40, 19.50)
CIE-LCHlch(29.67, 36.96, 148.16°)
OKLaboklab(38.31% -0.0843 0.0475)
OKLCHoklch(38.31% 0.097 150.6)
XYZxyz(3.4436, 6.1025, 2.8298)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5126 #510C37
analogous
#14510C #0C5126 #0C5148
triadic
#0C5126 #260C51 #51260C
tetradic
#0C5126 #0C1451 #510C37 #51480C
square
#0C5126 #0C1451 #510C37 #51480C
split-complementary
#0C5126 #480C51 #510C14
monochromatic
#041B0D #041C0D #0C5126 #14863F #1CBC58

Accessibility & contrast

On white

9.46
#0C5126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5126
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5126#FFFFFF#000000##FFFFFF
##0C51261.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514923
Deuteranopia (green-blind)
#4A4429
Tritanopia (blue-blind)
#004F47
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5126;
/* rgb */ color: rgb(12, 81, 38);
/* oklch */ color: oklch(38.3% 0.097 150.6);
Tailwind
colors: {
  custom: {
    50: '#598361',
    500: '#0c5126',
    950: '#000000',
  },
}
SCSS
$custom: #0c5126;
$custom-light: #598361;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5126",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 38
  },
  "hsl": {
    "h": 142.609,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38314,
    "c": 0.09681,
    "h": 150.6
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

primary
#0C5126
secondary
#8C2C68
accent
#37ABF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C5126

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

Preview Lab → · Contrast checker → · Palette generator →

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