#7848CC#7848CC

#7848CC is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.194 H 295.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7848CC
RGBrgb(120, 72, 204)
HSLhsl(262, 56%, 54%)
HSVhsv(262, 65%, 80%)
CMYKcmyk(41.2%, 64.7%, 0%, 20%)
CIE-LABlab(42.74, 48.87, -61.32)
CIE-LCHlch(42.74, 78.42, 308.55°)
OKLaboklab(52.76% 0.0843 -0.175)
OKLCHoklch(52.76% 0.194 295.7)
XYZxyz(20.9593, 12.9870, 58.5175)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848CC #9CCC48
analogous
#485ACC #7848CC #BA48CC
triadic
#7848CC #CC7848 #48CC78
tetradic
#7848CC #CC485A #9CCC48 #48CCBA
square
#7848CC #CC485A #9CCC48 #48CCBA
split-complementary
#7848CC #CCBA48 #5ACC48
monochromatic
#412178 #5B2FA8 #7848CC #9B78D9 #BFA8E7

Accessibility & contrast

On white

5.84
#7848CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7848CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848CC
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848CC#FFFFFF#000000##FFFFFF
##7848CC1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#626784
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7848cc;
/* rgb */ color: rgb(120, 72, 204);
/* oklch */ color: oklch(52.8% 0.194 295.7);
Tailwind
colors: {
  custom: {
    50: '#a57edc',
    500: '#7848cc',
    950: '#000000',
  },
}
SCSS
$custom: #7848cc;
$custom-light: #a57edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7848cc",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 261.818,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52759,
    "c": 0.19424,
    "h": 295.7
  },
  "luminance": 0.12987
}

Semantic roles & 50–950 ramp

primary
#7848CC
secondary
#C0D49C
accent
#E048A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7848CC

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

Preview Lab → · Contrast checker → · Palette generator →

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