#7F5DFD

A color in the Violet family

#7f5dfd is a color in the Violet family: RGB(127, 93, 253), HSL(253°, 98%, 68%), CMYK(50%, 63%, 0%, 1%). Closest named color: mediumslateblue. Contrast is 4.3:1 on white and 4.89:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#7f5dfd
RGBrgb(127 93 253)
RGB (legacy)rgb(127, 93, 253)
RGB %rgb(50% 36% 99%)
HSLhsl(253 98% 68%)
HSV / HSBhsv(253, 63%, 99%)
HWBhwb(253 36% 1%)
CMYKcmyk(50%, 63%, 0%, 1%)
CIELAB (D50)lab(50.13 44.19 -76.67)
LCHlch(50.13 88.49 299.96)
OKLaboklab(0.6015 0.0673 -0.2159)
OKLCHoklch(0.6015 0.2261 287.31)
Decimal8347133

Properties

Color ToneViolet
Closest named colormediumslateblue ΔE 3.3
Closest web-safe color#6666ff
Hue253°
Saturation (HSL / HSV)98% / 63%
Lightness (HSL)68%
Brightness or Value (HSV)99%
Luminance (Rec.601 / Rec.709)48% / 44%
Relative luminance (WCAG)0.1943
Red / Green / Blue127 / 93 / 253

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 69.2 / -32.5 · As background with white / black text: Lc -74.7 / 34.9

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: #7f5dfd;
  --color-brand-oklch: oklch(60.15% 0.2261 287.31);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(127 93 253 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7f5dfd] text-[#7f5dfd] border-[#7f5dfd]">