#7848BF#7848BF

#7848BF is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.8% C 0.179 H 298.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7848BF
RGBrgb(120, 72, 191)
HSLhsl(264, 48%, 52%)
HSVhsv(264, 62%, 75%)
CMYKcmyk(37.2%, 62.3%, 0%, 25.1%)
CIE-LABlab(41.83, 45.46, -55.26)
CIE-LCHlch(41.83, 71.55, 309.44°)
OKLaboklab(51.81% 0.0854 -0.1572)
OKLCHoklch(51.81% 0.179 298.5)
XYZxyz(19.4647, 12.3891, 50.6460)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848BF #8FBF48
analogous
#4854BF #7848BF #B448BF
triadic
#7848BF #BF7848 #48BF78
tetradic
#7848BF #BF4854 #8FBF48 #48BFB4
square
#7848BF #BF4854 #8FBF48 #48BFB4
split-complementary
#7848BF #BFB448 #54BF48
monochromatic
#402468 #5C3496 #7848BF #9975CF #BBA3DF

Accessibility & contrast

On white

6.04
#7848BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7848BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848BF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848BF#FFFFFF#000000##FFFFFF
##7848BF1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#1262BC
Tritanopia (blue-blind)
#68627D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7848bf;
/* rgb */ color: rgb(120, 72, 191);
/* oklch */ color: oklch(51.8% 0.179 298.5);
Tailwind
colors: {
  custom: {
    50: '#a47dd3',
    500: '#7848bf',
    950: '#000000',
  },
}
SCSS
$custom: #7848bf;
$custom-light: #a47dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7848bf",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 264.202,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51806,
    "c": 0.17886,
    "h": 298.5
  },
  "luminance": 0.12389
}

Semantic roles & 50–950 ramp

primary
#7848BF
secondary
#B6CC97
accent
#D850A1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7848BF

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

Preview Lab → · Contrast checker → · Palette generator →

#7848BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva