#7848CA#7848CA

#7848CA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.192 H 296.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7848CA
RGBrgb(120, 72, 202)
HSLhsl(262, 55%, 54%)
HSVhsv(262, 64%, 79%)
CMYKcmyk(40.6%, 64.4%, 0%, 20.8%)
CIE-LABlab(42.60, 48.34, -60.40)
CIE-LCHlch(42.60, 77.37, 308.67°)
OKLaboklab(52.61% 0.0845 -0.1723)
OKLCHoklch(52.61% 0.192 296.1)
XYZxyz(20.7210, 12.8917, 57.2623)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848CA #9ACA48
analogous
#4859CA #7848CA #B948CA
triadic
#7848CA #CA7848 #48CA78
tetradic
#7848CA #CA4859 #9ACA48 #48CAB9
square
#7848CA #CA4859 #9ACA48 #48CAB9
split-complementary
#7848CA #CAB948 #59CA48
monochromatic
#412276 #5B30A5 #7848CA #9B77D8 #BEA7E5

Accessibility & contrast

On white

5.87
#7848CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7848CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848CA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848CA#FFFFFF#000000##FFFFFF
##7848CA1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#636683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7848ca;
/* rgb */ color: rgb(120, 72, 202);
/* oklch */ color: oklch(52.6% 0.192 296.1);
Tailwind
colors: {
  custom: {
    50: '#a57edb',
    500: '#7848ca',
    950: '#000000',
  },
}
SCSS
$custom: #7848ca;
$custom-light: #a57edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7848ca",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 262.154,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52609,
    "c": 0.19189,
    "h": 296.1
  },
  "luminance": 0.12892
}

Semantic roles & 50–950 ramp

primary
#7848CA
secondary
#BED39B
accent
#DE49A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7848CA

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

Preview Lab → · Contrast checker → · Palette generator →

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