#7848CD#7848CD

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

Color values

HEX#7848CD
RGBrgb(120, 72, 205)
HSLhsl(262, 57%, 54%)
HSVhsv(262, 65%, 80%)
CMYKcmyk(41.5%, 64.9%, 0%, 19.6%)
CIE-LABlab(42.82, 49.14, -61.78)
CIE-LCHlch(42.82, 78.94, 308.49°)
OKLaboklab(52.83% 0.0842 -0.1763)
OKLCHoklch(52.83% 0.195 295.5)
XYZxyz(21.0796, 13.0351, 59.1512)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7848CD #9DCD48
analogous
#485BCD #7848CD #BB48CD
triadic
#7848CD #CD7848 #48CD78
tetradic
#7848CD #CD485B #9DCD48 #48CDBB
square
#7848CD #CD485B #9DCD48 #48CDBB
split-complementary
#7848CD #CDBB48 #5BCD48
monochromatic
#412179 #5B2EA9 #7848CD #9B78DA #BFA8E7

Accessibility & contrast

On white

5.82
#7848CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7848CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7848CD
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7848CD#FFFFFF#000000##FFFFFF
##7848CD1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7848cd;
/* rgb */ color: rgb(120, 72, 205);
/* oklch */ color: oklch(52.8% 0.195 295.5);
Tailwind
colors: {
  custom: {
    50: '#a57edd',
    500: '#7848cd',
    950: '#000000',
  },
}
SCSS
$custom: #7848cd;
$custom-light: #a57edd;
$custom-dark: #000000;
JSON
{
  "hex": "#7848cd",
  "rgb": {
    "r": 120,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 261.654,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52834,
    "c": 0.19542,
    "h": 295.5
  },
  "luminance": 0.13036
}

Semantic roles & 50–950 ramp

primary
#7848CD
secondary
#C0D59C
accent
#E047A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7848CD

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

Preview Lab → · Contrast checker → · Palette generator →

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