Skip to content

Midnight (#702670)

The hex code for Midnight is #702670. It is rgb(112, 38, 112) in RGB, hsl(300, 49%, 29%) in HSL, and about cmyk(0%, 66%, 0%, 56%) in CMYK — a dark pink. White text is the more readable choice on this background.

#702670
HEX#702670
RGBrgb(112, 38, 112)
HSLhsl(300, 49%, 29%)
HSVhsv(300, 66%, 44%)
CMYKcmyk(0%, 66%, 0%, 56%)
OKLCHoklch(41% 0.14 327.8)
LABlab(29.35% 40.44 -26.93)
LCHlch(29.35% 48.58 326.33)

Colors Closest to Midnight

Midnight is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every pink in the library.

#702670 Channel Values

How Midnight breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 112 · G 38 · B 1128-bit channels as sent to the display
HSLH 300° · S 49% · L 29%Easiest model for building lighter and darker variants
HSVH 300° · S 66% · V 44%Matches the picker in most design tools
CMYKC 0% · M 66% · Y 0% · K 56%Approximate ink mix; confirm with an ICC profile before printing
Luminance9.54:1 vs white · 2.2:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Midnight background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text9.54:1AA normal AA large AAA normal
TextBlack text2.2:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #702670 in the contrast checker.

Colors That Go With Midnight

Pairings derived from color-wheel relationships. The complementary color sits opposite Midnight; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Midnight

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #702670.

How Midnight Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#702670
Protanopia#3B3B70
Protanomaly#553470
Deuteranopia#49496F
Deuteranomaly#5B3E6F
Tritanopia#6A3636
Tritanomaly#6C3153
Achromatopsia#454545

Test a full palette in the color blindness simulator.

Using #702670 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--midnight: #702670;
CSS backgroundbackground-color: #702670;
Tailwind configcolors: { 'midnight': '#702670' }
SwiftUIColor(red: 0.439, green: 0.149, blue: 0.439)
Android XML<color name="midnight">#702670</color>
SVG fillfill="#702670"

More Pink Colors

Midnight sits in the pinkfamily. These are its neighbours across that family's full range, each with its own breakdown.

#702670 Frequently Asked Questions

What is the hex code for Midnight?

The hex code for Midnight is #702670. That is rgb(112, 38, 112) in RGB, hsl(300, 49%, 29%) in HSL, and approximately cmyk(0%, 66%, 0%, 56%) in CMYK.

What is the RGB value of #702670?

#702670 is rgb(112, 38, 112) — red 112, green 38, and blue 112 on the 0-255 scale.

What is the CMYK value of #702670?

#702670 converts to approximately cmyk(0%, 66%, 0%, 56%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #702670 be black or white?

White text is the more readable choice. #702670 scores 9.54:1 against white and 2.2:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #702670 as a CSS color keyword?

No. #702670 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is purple (#800080) at a CIE76 distance of 18.26, which is visibly different.

Open Midnight in a Tool

Keep exploring: every pink in the color library, the guide to shades of pink, or the full color library.