Skip to content

#0c5921

a deep, electric green · cool · closest name: Dark Green

RGB
12, 89, 33
HSL
136°, 76%, 20%
CMYK
87, 0, 63, 65
Luminance
0.0733

At a glance

Every number on this page in one read: what #0c5921 is made of, how bright it looks, and which way it leans.

Hex
#0c5921
Hue
136°
green
Saturation
76%
electric
Lightness
20%
deep
Brightness
35%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0733
WCAG relative
Temperature
Cool
69/100 cool
Color family
Green
Tone
Electric
Best ink
White
8.51:1
Closest name
Dark Green
ΔE2000 6.7
Where it sits
Hue136° of 360°
Saturation76%
Lightness20%
Temperature
Warm ← → Cool69% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#0c5921
RGBrgb(12, 89, 33)
HSLhsl(136, 76%, 20%)
CMYKcmyk(87%, 0%, 63%, 65%)
LABlab(32.5 -35.4 25.8)
LCHlch(32.5 43.8 143.9)
OKLCHoklch(0.407 0.113 147.3)
Decimal809249
Display P3color(display-p3 0.047 0.349 0.129)

Copy-ready code

/* CSS */
color: #0c5921;
background-color: #0c5921;
/* Tailwind (arbitrary) */
class="text-[#0c5921] bg-[#0c5921]"
/* SCSS */
$brand: #0c5921;
/* SwiftUI */
Color(red: 0.047, green: 0.349, blue: 0.129)
/* Android */
Color.parseColor("#0c5921")
/* Flutter */
Color(0xFF0C5921)
/* Python / OpenCV (BGR) */
(33, 89, 12)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #0c5921 · 8.51:1
Use #ffffffAAA at every size.
Aa
White text · 8.51:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.47:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0c5921 as text scores 8.51:1 on white and 2.47:1 on black.

Accessibility — WCAG contrast

Aa
#0c5921 on white: 8.51:1
AA ✓ pass · AA-large · AAA
Aa
#0c5921 on black: 2.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5A501B
deuteranopia · #524A26
tritanopia · #00574D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #0c5921 is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3FCF5
#E7F9EC
#C8F4D4
#9CF2B4
#6BEB8E
#39E468
#1DD850
#18B443
#139035
#0c5921
#0B411A
Base = 900Lightest = 50 · #F3FCF5Darkest = 950 · #0B411A
:root {
  --brand-50: #F3FCF5;
  --brand-100: #E7F9EC;
  --brand-200: #C8F4D4;
  --brand-300: #9CF2B4;
  --brand-400: #6BEB8E;
  --brand-500: #39E468;
  --brand-600: #1DD850;
  --brand-700: #18B443;
  --brand-800: #139035;
  --brand-900: #0c5921;
  --brand-950: #0B411A;
  --brand: #0c5921;
  --brand-ink: #ffffff;
}

Colors that work with #0c5921

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4FAF6
Tinted page background
Border#C0EDCC
Hairlines and dividers
Muted text#4B9B61
Captions on the surface
Accent#5B0A59
Second voice, not a rival
Dark variant#0F702A
Hover, pressed, headers
Light variant#E9FCEE
Selected rows, tints
Dark surface#142418
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #0c5921

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#590C44
Analogous left#1D590C
Analogous right#0C5948
Split-complement 1#480C59
Split-complement 2#590C1D
Triadic 1#210C59
Triadic 2#59210C
Tetradic#0C1D59

RGB percentages

Red4.7%
Green34.9%
Blue12.9%

CMYK percentages

Cyan86.5%
Magenta0.0%
Yellow62.9%
Key (black)65.1%

Color previews

#0c5921 text on a black background

contrast 2.47:1

Card sample

#0c5921 text on a white background

contrast 8.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0c5921;
Background color
Panel with #0c5921 background
background-color: #0c5921;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0c5921;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(12, 89, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 89, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c5921;
background: linear-gradient(135deg, #0c5921, #0C5954);

Monochromatic scale

Palettes built from #0c5921

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#0c5921 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#0c5921, answered

What color is #0c5921?

#0c5921 is a deep electric green, closest to Dark Green (ΔE2000 6.7). It sits at 136° on the hue wheel with 76% saturation and 20% lightness, which reads as cool.

What is the RGB value of #0c5921?

rgb(12, 89, 33) — 12 red, 89 green and 33 blue out of 255, or 4.7% / 34.9% / 12.9% by channel.

Is #0c5921 a light or a dark color?

It is a dark color. Relative luminance is 0.0733 and perceived brightness is 27%, so white text on it reaches 8.51:1.

Should I use black or white text on #0c5921?

White. It scores 8.51:1 against #0c5921, versus 2.47:1 for black — AAA at any size.

What is the complementary color of #0c5921?

#590C44 sits directly opposite on the wheel. Softer options are the split-complements #480C59 and #590C1D, which give the same contrast with far less vibration.

What colors go well with #0c5921?

For interface work: #F4FAF6 as the surface, #C0EDCC for borders, #4B9B61 for secondary text, #5B0A59 as an accent and #0F702A for hover and pressed states. For a palette, the analogous pair #1D590C and #0C5948 stays calm, while #590C44 is the loudest partner.

What is #0c5921 in CMYK for printing?

cmyk(87%, 0%, 63%, 65%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #0c5921 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #13590C; nudged cooler, #0B5A3E.

Work with #0c5921 in the Color Lab