#0C5D40

Closest named color: Spruce (#0A5F38). oklch(42.5% 0.088 162.7), rgb(12, 93, 64).

Aa

White text reads best on this color (7.90:1).

About this color

#0C5D40 is a dark, moderately saturated green. In OKLCH its lightness is 43%, its chroma 0.088 and its hue 163°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Spruce (#0A5F38), ΔE 0.016 away. White text reads best on it, at 7.90:1.

Hue familyGreens
Lightnessdark (43%)
Chromamoderately saturated (0.088)
Temperaturein between
Nearest nameSpruce (#0A5F38)
Black text2.65:1
White text7.90:1

Values

HEX#0C5D40
RGBrgb(12, 93, 64)
HSLhsl(159, 77%, 21%)
OKLCHoklch(42.5% 0.088 162.7)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #0C5D40 7.90:1 AAA Lc -91.8 Preferred for body text
Black text on #0C5D40 2.65:1 Fails Lc 17.0 Dividers and decoration only
#0C5D40 text on white 7.90:1 AAA Lc 87.0 Fine for body text
#0C5D40 text on black 2.65:1 Fails Lc -15.1 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 800.

  1. Step 50

    50

    #F2F7F4

    oklch(97.2% 0.007 160.1)

  2. Step 100

    100

    #E2EDE7

    oklch(93.6% 0.014 162.5)

  3. Step 200

    200

    #C9DFD4

    oklch(88.4% 0.028 164.3)

  4. Step 300

    300

    #A4CBB7

    oklch(80.8% 0.05 162.8)

  5. Step 400

    400

    #6FB192

    oklch(70.7% 0.082 163)

  6. Step 500

    500

    #439D77

    oklch(63.1% 0.104 163)

  7. Step 600

    600

    #18885F

    oklch(55.7% 0.115 162.4)

  8. Step 700

    700

    #03734F

    oklch(49.2% 0.106 162.8)

  9. Step 800

    800 (this color)

    #0C5D40

    oklch(42.5% 0.088 162.7)

  10. Step 900

    900

    #174D37

    oklch(37.8% 0.068 162.7)

  11. Step 950

    950

    #0F2D20

    oklch(27% 0.044 162.7)

Export this scale for Tailwind in the Tailwind colors tool

#0C5D40 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#5B553E0.084
Deuteranopia (no green cones)#524E420.083
Tritanopia (no blue cones)#005D550.034
Achromatopsia (no color)#5151510.088

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #0C5D40

    #0C5D40

    oklch(42.5% 0.088 162.7)

  • #6F395B

    #6F395B

    oklch(42.5% 0.089 343.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0C5D40

    #0C5D40

    oklch(42.5% 0.088 162.7)

  • #3B5822

    #3B5822

    oklch(42.4% 0.088 132.6)

  • #005B59

    #005B59

    oklch(42.6% 0.073 192.2)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #0C5D40

    #0C5D40

    oklch(42.5% 0.088 162.7)

  • #5F3F71

    #5F3F71

    oklch(42.5% 0.088 312.5)

  • #773841

    #773841

    oklch(42.6% 0.088 12.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0C5D40

    #0C5D40

    oklch(42.5% 0.088 162.7)

  • #48477D

    #48477D

    oklch(42.5% 0.088 282.8)

  • #763C25

    #763C25

    oklch(42.5% 0.088 41.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0C5D40

    #0C5D40

    oklch(42.5% 0.088 162.7)

  • #28507D

    #28507D

    oklch(42.5% 0.088 252.9)

  • #6F395B

    #6F395B

    oklch(42.5% 0.089 343.1)

  • #6B4506

    #6B4506

    oklch(42.4% 0.088 72.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #0C5D40, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #0C5D40 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.