#7848C2#7848C2

#7848C2 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.0% C 0.182 H 297.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7848C2
RGBrgb(120, 72, 194)
HSLhsl(264, 50%, 52%)
HSVhsv(264, 63%, 76%)
CMYKcmyk(38.1%, 62.9%, 0%, 23.9%)
CIE-LABlab(42.03, 46.24, -56.67)
CIE-LCHlch(42.03, 73.14, 309.21°)
OKLaboklab(52.02% 0.0852 -0.1613)
OKLCHoklch(52.02% 0.182 297.8)
XYZxyz(19.7982, 12.5226, 52.4025)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848C2 #92C248
analogous
#4855C2 #7848C2 #B548C2
triadic
#7848C2 #C27848 #48C278
tetradic
#7848C2 #C24855 #92C248 #48C2B5
square
#7848C2 #C24855 #92C248 #48C2B5
split-complementary
#7848C2 #C2B548 #55C248
monochromatic
#40246C #5B339A #7848C2 #9A76D1 #BCA4E1

Accessibility & contrast

On white

5.99
#7848C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7848C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848C2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848C2#FFFFFF#000000##FFFFFF
##7848C21.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0662BF
Tritanopia (blue-blind)
#67637E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7848c2;
/* rgb */ color: rgb(120, 72, 194);
/* oklch */ color: oklch(52.0% 0.182 297.8);
Tailwind
colors: {
  custom: {
    50: '#a47dd5',
    500: '#7848c2',
    950: '#000000',
  },
}
SCSS
$custom: #7848c2;
$custom-light: #a47dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7848c2",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 263.607,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52022,
    "c": 0.18243,
    "h": 297.8
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

primary
#7848C2
secondary
#B9CE98
accent
#DA4EA3
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7848C2

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

Preview Lab → · Contrast checker → · Palette generator →

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