#0C5123#0C5123

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

Color values

HEX#0C5123
RGBrgb(12, 81, 35)
HSLhsl(140, 74%, 18%)
HSVhsv(140, 85%, 32%)
CMYKcmyk(85.2%, 0%, 56.8%, 68.2%)
CIE-LABlab(29.62, -31.95, 21.18)
CIE-LCHlch(29.62, 38.33, 146.46°)
OKLaboklab(38.26% -0.0858 0.0511)
OKLCHoklch(38.26% 0.1 149.2)
XYZxyz(3.3971, 6.0840, 2.5851)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5123 #510C3A
analogous
#17510C #0C5123 #0C5145
triadic
#0C5123 #230C51 #51230C
tetradic
#0C5123 #0C1751 #510C3A #51450C
square
#0C5123 #0C1751 #510C3A #51450C
split-complementary
#0C5123 #450C51 #510C17
monochromatic
#041B0C #041C0C #0C5123 #14863A #1CBC51

Accessibility & contrast

On white

9.47
#0C5123 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5123
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5123#FFFFFF#000000##FFFFFF
##0C51231.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491F
Deuteranopia (green-blind)
#4A4426
Tritanopia (blue-blind)
#004F46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5123;
/* rgb */ color: rgb(12, 81, 35);
/* oklch */ color: oklch(38.3% 0.100 149.2);
Tailwind
colors: {
  custom: {
    50: '#59835f',
    500: '#0c5123',
    950: '#000000',
  },
}
SCSS
$custom: #0c5123;
$custom-light: #59835f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5123",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 35
  },
  "hsl": {
    "h": 140,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38261,
    "c": 0.09991,
    "h": 149.2
  },
  "luminance": 0.06084
}

Semantic roles & 50–950 ramp

primary
#0C5123
secondary
#8C2C6C
accent
#37B3F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C5123

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

Preview Lab → · Contrast checker → · Palette generator →

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