#7861BA

A color in the Violet family

#7861ba is a color in the Violet family: RGB(120, 97, 186), HSL(256°, 39%, 55%), CMYK(35%, 48%, 0%, 27%). Closest named color: slateblue. Contrast is 4.98:1 on white and 4.22:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#7861ba
RGBrgb(120 97 186)
RGB (legacy)rgb(120, 97, 186)
RGB %rgb(47% 38% 73%)
HSLhsl(256 39% 55%)
HSV / HSBhsv(256, 48%, 73%)
HWBhwb(256 38% 27%)
CMYKcmyk(35%, 48%, 0%, 27%)
CIELAB (D50)lab(46.61 25.2 -44.42)
LCHlch(46.61 51.07 299.56)
OKLaboklab(0.5559 0.0537 -0.1239)
OKLCHoklch(0.5559 0.135 293.42)
Decimal7889338

Properties

Color ToneViolet
Closest named colorslateblue ΔE 4.4
Closest web-safe color#6666cc
Hue256°
Saturation (HSL / HSV)39% / 48%
Lightness (HSL)55%
Brightness or Value (HSV)73%
Luminance (Rec.601 / Rec.709)45% / 42%
Relative luminance (WCAG)0.1609
Red / Green / Blue120 / 97 / 186

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.22: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.3 / -27.4 · As background with white / black text: Lc -79.7 / 29.8

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: #7861ba;
  --color-brand-oklch: oklch(55.59% 0.135 293.42);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(120 97 186 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7861ba] text-[#7861ba] border-[#7861ba]">