#7848DB#7848DB

#7848DB is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 53.9% C 0.212 H 292.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7848DB
RGBrgb(120, 72, 219)
HSLhsl(260, 67%, 57%)
HSVhsv(260, 67%, 86%)
CMYKcmyk(45.2%, 67.1%, 0%, 14.1%)
CIE-LABlab(43.86, 52.86, -68.13)
CIE-LCHlch(43.86, 86.23, 307.81°)
OKLaboklab(53.91% 0.0824 -0.195)
OKLCHoklch(53.91% 0.212 292.9)
XYZxyz(22.8458, 13.7416, 68.4528)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848DB #ABDB48
analogous
#4862DB #7848DB #C248DB
triadic
#7848DB #DB7848 #48DB78
tetradic
#7848DB #DB4862 #ABDB48 #48DBC2
square
#7848DB #DB4862 #ABDB48 #48DBC2
split-complementary
#7848DB #DBC248 #62DB48
monochromatic
#411C8D #5826C0 #7848DB #9E7BE5 #C3AEEF

Accessibility & contrast

On white

5.60
#7848DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7848DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848DB
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848DB#FFFFFF#000000##FFFFFF
##7848DB1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#0065D8
Tritanopia (blue-blind)
#5B6C8C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7848db;
/* rgb */ color: rgb(120, 72, 219);
/* oklch */ color: oklch(53.9% 0.212 292.9);
Tailwind
colors: {
  custom: {
    50: '#a77ee7',
    500: '#7848db',
    950: '#000000',
  },
}
SCSS
$custom: #7848db;
$custom-light: #a77ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#7848db",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 259.592,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.53912,
    "c": 0.21169,
    "h": 292.9
  },
  "luminance": 0.13742
}

Semantic roles & 50–950 ramp

primary
#7848DB
secondary
#CADDA2
accent
#EA3EB2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7848DB

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

Preview Lab → · Contrast checker → · Palette generator →

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