#7848DF#7848DF

#7848DF is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.2% C 0.216 H 292.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7848DF
RGBrgb(120, 72, 223)
HSLhsl(259, 70%, 58%)
HSVhsv(259, 68%, 87%)
CMYKcmyk(46.2%, 67.7%, 0%, 12.5%)
CIE-LABlab(44.17, 53.93, -69.91)
CIE-LCHlch(44.17, 88.29, 307.65°)
OKLaboklab(54.23% 0.0818 -0.2002)
OKLCHoklch(54.23% 0.216 292.2)
XYZxyz(23.3787, 13.9547, 71.2595)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848DF #AFDF48
analogous
#4863DF #7848DF #C448DF
triadic
#7848DF #DF7848 #48DF78
tetradic
#7848DF #DF4863 #AFDF48 #48DFC4
square
#7848DF #DF4863 #AFDF48 #48DFC4
split-complementary
#7848DF #DFC448 #63DF48
monochromatic
#401A93 #5723C7 #7848DF #9E7CE8 #C5B0F1

Accessibility & contrast

On white

5.54
#7848DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7848DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848DF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848DF#FFFFFF#000000##FFFFFF
##7848DF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#0065DC
Tritanopia (blue-blind)
#596E8E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7848df;
/* rgb */ color: rgb(120, 72, 223);
/* oklch */ color: oklch(54.2% 0.216 292.2);
Tailwind
colors: {
  custom: {
    50: '#a77eea',
    500: '#7848df',
    950: '#000000',
  },
}
SCSS
$custom: #7848df;
$custom-light: #a77eea;
$custom-dark: #000000;
JSON
{
  "hex": "#7848df",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 259.073,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54229,
    "c": 0.21629,
    "h": 292.2
  },
  "luminance": 0.13956
}

Semantic roles & 50–950 ramp

primary
#7848DF
secondary
#CCE0A3
accent
#ED3BB4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7848DF

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

Preview Lab → · Contrast checker → · Palette generator →

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