#0C4F25#0C4F25

#0C4F25 is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.7% C 0.095 H 150.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#0C4F25
RGBrgb(12, 79, 37)
HSLhsl(142, 74%, 18%)
HSVhsv(142, 85%, 31%)
CMYKcmyk(84.8%, 0%, 53.2%, 69%)
CIE-LABlab(28.91, -30.78, 19.13)
CIE-LCHlch(28.91, 36.24, 148.13°)
OKLaboklab(37.68% -0.0827 0.0466)
OKLCHoklch(37.68% 0.095 150.6)
XYZxyz(3.2812, 5.8033, 2.6971)
Luminance0.0580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F25 #4F0C36
analogous
#154F0C #0C4F25 #0C4F46
triadic
#0C4F25 #250C4F #4F250C
tetradic
#0C4F25 #0C154F #4F0C36 #4F460C
square
#0C4F25 #0C154F #4F0C36 #4F460C
split-complementary
#0C4F25 #460C4F #4F0C15
monochromatic
#041B0C #041B0C #0C4F25 #14843E #1CB957

Accessibility & contrast

On white

9.72
#0C4F25 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#0C4F25 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F25
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F25#FFFFFF#000000##FFFFFF
##0C4F251.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4722
Deuteranopia (green-blind)
#484228
Tritanopia (blue-blind)
#004E45
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f25;
/* rgb */ color: rgb(12, 79, 37);
/* oklch */ color: oklch(37.7% 0.095 150.6);
Tailwind
colors: {
  custom: {
    50: '#588160',
    500: '#0c4f25',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f25;
$custom-light: #588160;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f25",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 37
  },
  "hsl": {
    "h": 142.388,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37681,
    "c": 0.09491,
    "h": 150.6
  },
  "luminance": 0.05804
}

Semantic roles & 50–950 ramp

primary
#0C4F25
secondary
#8B2C67
accent
#38ABF0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C4F25

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

Preview Lab → · Contrast checker → · Palette generator →

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