#7948DC#7948DC

#7948DC is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.1% C 0.213 H 293.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7948DC
RGBrgb(121, 72, 220)
HSLhsl(260, 68%, 57%)
HSVhsv(260, 67%, 86%)
CMYKcmyk(45%, 67.3%, 0%, 13.7%)
CIE-LABlab(44.04, 53.31, -68.40)
CIE-LCHlch(44.04, 86.72, 307.93°)
OKLaboklab(54.09% 0.0836 -0.1958)
OKLCHoklch(54.09% 0.213 293.1)
XYZxyz(23.1172, 13.8663, 69.1547)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948DC #ABDC48
analogous
#4861DC #7948DC #C348DC
triadic
#7948DC #DC7948 #48DC79
tetradic
#7948DC #DC4861 #ABDC48 #48DCC3
square
#7948DC #DC4861 #ABDC48 #48DCC3
split-complementary
#7948DC #DCC348 #61DC48
monochromatic
#411B8E #5925C2 #7948DC #9F7BE6 #C4AFF0

Accessibility & contrast

On white

5.57
#7948DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7948DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948DC
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948DC#FFFFFF#000000##FFFFFF
##7948DC1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#0065D9
Tritanopia (blue-blind)
#5C6C8C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7948dc;
/* rgb */ color: rgb(121, 72, 220);
/* oklch */ color: oklch(54.1% 0.213 293.1);
Tailwind
colors: {
  custom: {
    50: '#a77ee8',
    500: '#7948dc',
    950: '#000000',
  },
}
SCSS
$custom: #7948dc;
$custom-light: #a77ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#7948dc",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 220
  },
  "hsl": {
    "h": 259.865,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54089,
    "c": 0.21288,
    "h": 293.1
  },
  "luminance": 0.13867
}

Semantic roles & 50–950 ramp

primary
#7948DC
secondary
#CADEA2
accent
#EB3DB1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7948DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7948DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva