#5E287C

A color in the Purple, Crimson, Magenta family

#5e287c is a color in the Purple, Crimson, Magenta family: RGB(94, 40, 124), HSL(279°, 51%, 32%), CMYK(24%, 68%, 0%, 51%). Closest named color: darkslateblue. Contrast is 10.14:1 on white and 2.07:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#5e287c
RGBrgb(94 40 124)
RGB (legacy)rgb(94, 40, 124)
RGB %rgb(37% 16% 49%)
HSLhsl(279 51% 32%)
HSV / HSBhsv(279, 68%, 49%)
HWBhwb(279 16% 51%)
CMYKcmyk(24%, 68%, 0%, 51%)
CIELAB (D50)lab(27.39 36.21 -37.87)
LCHlch(27.39 52.4 313.72)
OKLaboklab(0.3941 0.0927 -0.106)
OKLCHoklch(0.3941 0.1408 311.16)
Decimal6170748

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkslateblue ΔE 6.3
Closest web-safe color#663366
Hue279°
Saturation (HSL / HSV)51% / 68%
Lightness (HSL)32%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)26% / 23%
Relative luminance (WCAG)0.0535
Red / Green / Blue94 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.14:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.07:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 93 / -9.5 · As background with white / black text: Lc -97.1 / 11

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #5e287c;
  --color-brand-oklch: oklch(39.41% 0.1408 311.16);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(94 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#5e287c] text-[#5e287c] border-[#5e287c]">