#7848CF#7848CF

#7848CF is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.0% C 0.198 H 295.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7848CF
RGBrgb(120, 72, 207)
HSLhsl(261, 58%, 55%)
HSVhsv(261, 65%, 81%)
CMYKcmyk(42%, 65.2%, 0%, 18.8%)
CIE-LABlab(42.96, 49.67, -62.70)
CIE-LCHlch(42.96, 79.99, 308.38°)
OKLaboklab(52.99% 0.084 -0.179)
OKLCHoklch(52.99% 0.198 295.1)
XYZxyz(21.3226, 13.1323, 60.4307)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848CF #9FCF48
analogous
#485CCF #7848CF #BB48CF
triadic
#7848CF #CF7848 #48CF78
tetradic
#7848CF #CF485C #9FCF48 #48CFBB
square
#7848CF #CF485C #9FCF48 #48CFBB
split-complementary
#7848CF #CFBB48 #5CCF48
monochromatic
#41217C #5B2DAD #7848CF #9C78DC #C0A9E8

Accessibility & contrast

On white

5.79
#7848CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7848CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848CF
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848CF#FFFFFF#000000##FFFFFF
##7848CF1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#616885
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7848cf;
/* rgb */ color: rgb(120, 72, 207);
/* oklch */ color: oklch(53.0% 0.198 295.1);
Tailwind
colors: {
  custom: {
    50: '#a57edf',
    500: '#7848cf',
    950: '#000000',
  },
}
SCSS
$custom: #7848cf;
$custom-light: #a57edf;
$custom-dark: #000000;
JSON
{
  "hex": "#7848cf",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 261.333,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52985,
    "c": 0.19775,
    "h": 295.1
  },
  "luminance": 0.13133
}

Semantic roles & 50–950 ramp

primary
#7848CF
secondary
#C2D69D
accent
#E246AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7848CF

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

Preview Lab → · Contrast checker → · Palette generator →

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