#7F59CD

A color in the Violet family

#7f59cd is a color in the Violet family: RGB(127, 89, 205), HSL(260°, 54%, 58%), CMYK(38%, 57%, 0%, 20%). Closest named color: slateblue. Contrast is 4.98:1 on white and 4.21:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#7f59cd
RGBrgb(127 89 205)
RGB (legacy)rgb(127, 89, 205)
RGB %rgb(50% 35% 80%)
HSLhsl(260 54% 58%)
HSV / HSBhsv(260, 57%, 80%)
HWBhwb(260 35% 20%)
CMYKcmyk(38%, 57%, 0%, 20%)
CIELAB (D50)lab(46.42 35.69 -55.61)
LCHlch(46.42 66.08 302.7)
OKLaboklab(0.5609 0.074 -0.1559)
OKLCHoklch(0.5609 0.1726 295.4)
Decimal8346061

Properties

Color ToneViolet
Closest named colorslateblue ΔE 3.4
Closest web-safe color#6666cc
Hue260°
Saturation (HSL / HSV)54% / 57%
Lightness (HSL)58%
Brightness or Value (HSV)80%
Luminance (Rec.601 / Rec.709)45% / 41%
Relative luminance (WCAG)0.1606
Red / Green / Blue127 / 89 / 205

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 74.2 / -27.6 · As background with white / black text: Lc -79.6 / 29.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: #7f59cd;
  --color-brand-oklch: oklch(56.09% 0.1726 295.4);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(127 89 205 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7f59cd] text-[#7f59cd] border-[#7f59cd]">