#7948DF#7948DF

#7948DF is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.3% C 0.216 H 292.6°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7948DF
RGBrgb(121, 72, 223)
HSLhsl(259, 70%, 58%)
HSVhsv(259, 68%, 87%)
CMYKcmyk(45.7%, 67.7%, 0%, 12.5%)
CIE-LABlab(44.27, 54.11, -69.73)
CIE-LCHlch(44.27, 88.26, 307.81°)
OKLaboklab(54.33% 0.0832 -0.1997)
OKLCHoklch(54.33% 0.216 292.6)
XYZxyz(23.5181, 14.0266, 71.2660)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948DF #AEDF48
analogous
#4862DF #7948DF #C448DF
triadic
#7948DF #DF7948 #48DF79
tetradic
#7948DF #DF4862 #AEDF48 #48DFC4
square
#7948DF #DF4862 #AEDF48 #48DFC4
split-complementary
#7948DF #DFC448 #62DF48
monochromatic
#411A93 #5823C7 #7948DF #9F7CE8 #C5B0F1

Accessibility & contrast

On white

5.52
#7948DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7948DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948DF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948DF#FFFFFF#000000##FFFFFF
##7948DF1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#0066DC
Tritanopia (blue-blind)
#5A6D8E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7948df;
/* rgb */ color: rgb(121, 72, 223);
/* oklch */ color: oklch(54.3% 0.216 292.6);
Tailwind
colors: {
  custom: {
    50: '#a87eea',
    500: '#7948df',
    950: '#000000',
  },
}
SCSS
$custom: #7948df;
$custom-light: #a87eea;
$custom-dark: #000000;
JSON
{
  "hex": "#7948df",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 259.47,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54326,
    "c": 0.21631,
    "h": 292.6
  },
  "luminance": 0.14027
}

Semantic roles & 50–950 ramp

primary
#7948DF
secondary
#CCE0A3
accent
#ED3BB3
background
#FAF7FE
surface
#F5EEFD
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7948DF

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

Preview Lab → · Contrast checker → · Palette generator →

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