#7848CB#7848CB

#7848CB is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.7% C 0.193 H 295.9°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7848CB
RGBrgb(120, 72, 203)
HSLhsl(262, 56%, 54%)
HSVhsv(262, 65%, 80%)
CMYKcmyk(40.9%, 64.5%, 0%, 20.4%)
CIE-LABlab(42.67, 48.61, -60.86)
CIE-LCHlch(42.67, 77.89, 308.61°)
OKLaboklab(52.68% 0.0844 -0.1736)
OKLCHoklch(52.68% 0.193 295.9)
XYZxyz(20.8398, 12.9392, 57.8879)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848CB #9BCB48
analogous
#485ACB #7848CB #BA48CB
triadic
#7848CB #CB7848 #48CB78
tetradic
#7848CB #CB485A #9BCB48 #48CBBA
square
#7848CB #CB485A #9BCB48 #48CBBA
split-complementary
#7848CB #CBBA48 #5ACB48
monochromatic
#412277 #5B2FA6 #7848CB #9B78D9 #BEA7E6

Accessibility & contrast

On white

5.85
#7848CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7848CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848CB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848CB#FFFFFF#000000##FFFFFF
##7848CB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#636683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7848cb;
/* rgb */ color: rgb(120, 72, 203);
/* oklch */ color: oklch(52.7% 0.193 295.9);
Tailwind
colors: {
  custom: {
    50: '#a57edc',
    500: '#7848cb',
    950: '#000000',
  },
}
SCSS
$custom: #7848cb;
$custom-light: #a57edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7848cb",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 261.985,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52684,
    "c": 0.19307,
    "h": 295.9
  },
  "luminance": 0.1294
}

Semantic roles & 50–950 ramp

primary
#7848CB
secondary
#BFD39B
accent
#DF49A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7848CB

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

Preview Lab → · Contrast checker → · Palette generator →

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