#7861BA#7861BA

#7861BA is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.6% C 0.135 H 293.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7861BA
RGBrgb(120, 97, 186)
HSLhsl(256, 39%, 55%)
HSVhsv(256, 48%, 73%)
CMYKcmyk(35.5%, 47.8%, 0%, 27.1%)
CIE-LABlab(47.09, 29.77, -43.92)
CIE-LCHlch(47.09, 53.05, 304.13°)
OKLaboklab(55.59% 0.0537 -0.1239)
OKLCHoklch(55.59% 0.135 293.4)
XYZxyz(20.8811, 16.0872, 48.4498)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7861BA #A3BA61
analogous
#6176BA #7861BA #A561BA
triadic
#7861BA #BA7861 #61BA78
tetradic
#7861BA #BA6176 #A3BA61 #61BAA5
square
#7861BA #BA6176 #A3BA61 #61BAA5
split-complementary
#7861BA #BAA561 #76BA61
monochromatic
#413170 #5A439A #7861BA #9C8CCD #C1B6DF

Accessibility & contrast

On white

4.98
#7861BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7861BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7861BA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7861BA#FFFFFF#000000##FFFFFF
##7861BA1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4271BD
Deuteranopia (green-blind)
#456EB8
Tritanopia (blue-blind)
#687285
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7861ba;
/* rgb */ color: rgb(120, 97, 186);
/* oklch */ color: oklch(55.6% 0.135 293.4);
Tailwind
colors: {
  custom: {
    50: '#a28ecf',
    500: '#7861ba',
    950: '#000000',
  },
}
SCSS
$custom: #7861ba;
$custom-light: #a28ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7861ba",
  "rgb": {
    "r": 120,
    "g": 97,
    "b": 186
  },
  "hsl": {
    "h": 255.506,
    "s": 39.207,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55593,
    "c": 0.135,
    "h": 293.4
  },
  "luminance": 0.16088
}

Semantic roles & 50–950 ramp

primary
#7861BA
secondary
#C4CEA9
accent
#CF59B1
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #7861BA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#7861BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva