Cranberry to HSL — Color Code

#9e003a
Format Value
HEX #9e003a
RGB rgb(158, 0, 58)
HSL hsl(338, 100%, 31%)
CMYK cmyk(0%, 100%, 63.3%, 38%)
HSV hsv(338, 100%, 62%)

cranberry color harmonies

Tints & shades of cranberry

Tints (lighter)

#a7174c #b02e5e #b84670 #c15d82 #ca7494 #d38ba5 #dca2b7 #e5b9c9 #edd1db #f6e8ed

Shades (darker)

#900035 #81002f #73002a #650025 #560020 #48001a #390015 #2b0010 #1d000b #0e0005

Contrast & accessibility

The quick brown fox

On white · 8.35:1 · AAA

The quick brown fox

On black · 2.51:1 · Fail

Recommended text color: #ffffff

Use cranberry in code

CSS color: #9e003a;
SCSS $color: #9e003a;
Tailwind bg-[#9e003a]
Swift UIColor(red: 0.620, green: 0.000, blue: 0.227, alpha: 1)
Android Color.parseColor("#9e003a")
Flutter Color(0xFF9E003A)

Colors similar to cranberry

Browse all Pink colors →

What is the HSL code for cranberry?

The CSS color cranberry in HSL format is hsl(338, 100%, 31%). Use this value directly in CSS, SVG, and most design tools.

How do I use cranberry in CSS?

To apply cranberry in CSS:

  • Text color: color: hsl(338, 100%, 31%);
  • Background: background-color: hsl(338, 100%, 31%);
  • Border: border-color: hsl(338, 100%, 31%);

What are all the color format values for cranberry?

FormatValue
HEX#9e003a
RGBrgb(158, 0, 58)
HSLhsl(338, 100%, 31%)
CMYKcmyk(0%, 100%, 63.3%, 38%)

How do I convert cranberry to HSL?

Select cranberry from the color name list in our color converter. The HSL value — hsl(338, 100%, 31%) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does cranberry belong to?

cranberry belongs to the pink color family. It is a medium, vivid color with HSL values: hue 338°, saturation 100%, lightness 31%.

How do I create lighter and darker shades of cranberry?

Lighter variant (lightness 46%): #eb0056. Darker variant (lightness 16%): #52001e. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is HSL used for?

HSL describes colors by hue (0–360°), saturation (0–100%) and lightness (0–100%). It is more intuitive for designers — easy to create lighter, darker or less saturated variants of any color.