#0C4226#0C4226

#0C4226 is a dark, moderate green. Relative luminance 0.041; OKLCH L 33.7% C 0.074 H 155.6°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#0C4226
RGBrgb(12, 66, 38)
HSLhsl(149, 69%, 15%)
HSVhsv(149, 82%, 26%)
CMYKcmyk(81.8%, 0%, 42.4%, 74.1%)
CIE-LABlab(24.05, -24.92, 12.21)
CIE-LCHlch(24.05, 27.75, 153.89°)
OKLaboklab(33.67% -0.0673 0.0306)
OKLCHoklch(33.67% 0.074 155.6)
XYZxyz(2.4495, 4.1143, 2.4984)
Luminance0.0411 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4226 #420C28
analogous
#0D420C #0C4226 #0C4241
triadic
#0C4226 #260C42 #42260C
tetradic
#0C4226 #0C0D42 #420C28 #42410C
square
#0C4226 #0C0D42 #420C28 #42410C
split-complementary
#0C4226 #410C42 #420C0D
monochromatic
#051A0F #051A0F #0C4226 #157644 #1FAA62

Accessibility & contrast

On white

11.52
#0C4226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#0C4226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4226
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4226#FFFFFF#000000##FFFFFF
##0C42261.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423C24
Deuteranopia (green-blind)
#3B3728
Tritanopia (blue-blind)
#00413B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c4226;
/* rgb */ color: rgb(12, 66, 38);
/* oklch */ color: oklch(33.7% 0.074 155.6);
Tailwind
colors: {
  custom: {
    50: '#547760',
    500: '#0c4226',
    950: '#000000',
  },
}
SCSS
$custom: #0c4226;
$custom-light: #547760;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4226",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 38
  },
  "hsl": {
    "h": 148.889,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33668,
    "c": 0.07394,
    "h": 155.6
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#0C4226
secondary
#7E2C56
accent
#3C97EC
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030805
muted
#787B79

Preview Lab

Preview with #0C4226

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

Preview Lab → · Contrast checker → · Palette generator →

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