Nearest named color · #C340AD
#C340AD
Nearest named color: Mystifying Magenta
#C340AD (rgb(195 64 173), hsl(310 52% 51%), oklch(0.594 0.204 335.3)) is closest to the named color Mystifying Magenta. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#C340AD
oklch(0.594 0.204 335.3)
Color conversions
- HEX
- #c340ad
- RGB
- rgb(195 64 173)
- HSL
- hsl(310 52% 51%)
- HWB
- hwb(310 25% 24%)
- OKLCH
- oklch(0.594 0.204 335.3)
- OKLab
- oklab(0.594 0.185 -0.085)
- CIE Lab
- lab(49.92 61.13 -30.82)
- LCH
- lch(49.92 68.46 333.2)
- CMYK
- cmyk(0% 67% 11% 24%)
Tints · Shades · Tones
Tints
- CB57B5
- D26BBE
- D97FC6
- E091CF
- E6A4D7
- ECB6DF
- F2C8E7
- F6DBEF
- FBEDF7
Shades
- A93696
- 902D7F
- 78246A
- 601B55
- 4A1341
- 340B2D
- 20051B
- 0E010B
- 020001
Tones
- BD4AA9
- B853A4
- B25AA0
- AB619C
- A56797
- 9E6D93
- 97728E
- 90778A
- 887C85
Color harmonies
Complementary +180°
- C340AD
Mystifying Magenta
- 009757
≈ Garnish
Analogous -30° +30°
- C340AD
Mystifying Magenta
- 9C54DD
≈ Lightish Purple
- D9336E
≈ Raspberry Sorbet
Triadic +120° +240°
- C340AD
Mystifying Magenta
- 957D00
≈ Moscow Papyrus
- 008EA6
≈ Parrot Flight
Split-complementary +150° +210°
- C340AD
Mystifying Magenta
- 6A8D00
≈ Asparagus Sultan
- 009287
≈ Deep Peacock Blue
Tetradic +90° +180° +270°
- C340AD
Mystifying Magenta
- B36B00
≈ Caramel
- 009757
≈ Garnish
- 0084D1
≈ Calgar Blue
Contrast & accessibility
Ag
AAOn white
WCAG 4.50:1 · APCA Lc 70
Ag
AAOn black
WCAG 4.65:1 · APCA Lc 31
Best text color: #000000
WCAG 4.65:1 (AA) · APCA Lc 31
Contrast pairs
Code snippets
CSS
:root {
--mystifying-magenta: #c340ad;
--mystifying-magenta-rgb: 195 64 173;
--mystifying-magenta-oklch: oklch(0.594 0.204 335.3);
}
.element {
color: var(--mystifying-magenta);
background-color: hsl(310 52% 51%);
border-color: oklch(0.594 0.204 335.3);
}Tailwind CSS v4
@theme {
--color-mystifying-magenta: #c340ad;
--color-mystifying-magenta-50: #ffdfff;
--color-mystifying-magenta-100: #ffceff;
--color-mystifying-magenta-200: #ffb2f4;
--color-mystifying-magenta-300: #f88bdd;
--color-mystifying-magenta-400: #e467cd;
--color-mystifying-magenta-500: #d23eba;
--color-mystifying-magenta-600: #b1369d;
--color-mystifying-magenta-700: #8e2b7e;
--color-mystifying-magenta-800: #691e5f;
--color-mystifying-magenta-900: #4a1443;
--color-mystifying-magenta-950: #30052b;
}SCSS
$mystifying-magenta: #c340ad;
$mystifying-magenta-rgb: 195, 64, 173;
$mystifying-magenta-light: mix(#fff, $mystifying-magenta, 20%);
$mystifying-magenta-dark: mix(#000, $mystifying-magenta, 20%);
.element {
color: $mystifying-magenta;
box-shadow: 0 0 0 2px rgba($mystifying-magenta, 0.35);
}