#0C5731#0C5731

#0C5731 is a dark, moderate green. Relative luminance 0.071; OKLCH L 40.4% C 0.094 H 154.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#0C5731
RGBrgb(12, 87, 49)
HSLhsl(150, 76%, 19%)
HSVhsv(150, 86%, 34%)
CMYKcmyk(86.2%, 0%, 43.7%, 65.9%)
CIE-LABlab(32.07, -31.64, 16.05)
CIE-LCHlch(32.07, 35.48, 153.10°)
OKLaboklab(40.36% -0.0852 0.0399)
OKLCHoklch(40.36% 0.094 154.9)
XYZxyz(4.1138, 7.1158, 4.0618)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5731 #570C32
analogous
#0C570C #0C5731 #0C5757
triadic
#0C5731 #310C57 #57310C
tetradic
#0C5731 #0C0C57 #570C32 #57570C
square
#0C5731 #0C0C57 #570C32 #57570C
split-complementary
#0C5731 #570C57 #570C0C
monochromatic
#041B0F #052113 #0C5731 #138D4F #1BC36E

Accessibility & contrast

On white

8.67
#0C5731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#0C5731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5731
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5731#FFFFFF#000000##FFFFFF
##0C57311.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574F2E
Deuteranopia (green-blind)
#4E4934
Tritanopia (blue-blind)
#00564E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #0c5731;
/* rgb */ color: rgb(12, 87, 49);
/* oklch */ color: oklch(40.4% 0.094 154.9);
Tailwind
colors: {
  custom: {
    50: '#5a8769',
    500: '#0c5731',
    950: '#000000',
  },
}
SCSS
$custom: #0c5731;
$custom-light: #5a8769;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5731",
  "rgb": {
    "r": 12,
    "g": 87,
    "b": 49
  },
  "hsl": {
    "h": 149.6,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40362,
    "c": 0.0941,
    "h": 154.9
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#0C5731
secondary
#922D60
accent
#3595F2
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B06
muted
#797C7A

Preview Lab

Preview with #0C5731

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

Preview Lab → · Contrast checker → · Palette generator →

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