#7948CE#7948CE

#7948CE is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.197 H 295.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7948CE
RGBrgb(121, 72, 206)
HSLhsl(262, 58%, 55%)
HSVhsv(262, 65%, 81%)
CMYKcmyk(41.3%, 65%, 0%, 19.2%)
CIE-LABlab(43.00, 49.60, -62.06)
CIE-LCHlch(43.00, 79.45, 308.63°)
OKLaboklab(53.01% 0.0854 -0.1771)
OKLCHoklch(53.01% 0.197 295.7)
XYZxyz(21.3402, 13.1554, 59.7955)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948CE #9DCE48
analogous
#485ACE #7948CE #BC48CE
triadic
#7948CE #CE7948 #48CE79
tetradic
#7948CE #CE485A #9DCE48 #48CEBC
square
#7948CE #CE485A #9DCE48 #48CEBC
split-complementary
#7948CE #CEBC48 #5ACE48
monochromatic
#42217B #5C2EAB #7948CE #9C78DB #C0A9E8

Accessibility & contrast

On white

5.78
#7948CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7948CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948CE
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948CE#FFFFFF#000000##FFFFFF
##7948CE1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0064CB
Tritanopia (blue-blind)
#636785
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7948ce;
/* rgb */ color: rgb(121, 72, 206);
/* oklch */ color: oklch(53.0% 0.197 295.7);
Tailwind
colors: {
  custom: {
    50: '#a67ede',
    500: '#7948ce',
    950: '#000000',
  },
}
SCSS
$custom: #7948ce;
$custom-light: #a67ede;
$custom-dark: #000000;
JSON
{
  "hex": "#7948ce",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 206
  },
  "hsl": {
    "h": 261.94,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53011,
    "c": 0.19667,
    "h": 295.7
  },
  "luminance": 0.13156
}

Semantic roles & 50–950 ramp

primary
#7948CE
secondary
#C1D59D
accent
#E147A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7948CE

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

Preview Lab → · Contrast checker → · Palette generator →

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