#7948E3#7948E3

#7948E3 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.6% C 0.221 H 291.9°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7948E3
RGBrgb(121, 72, 227)
HSLhsl(259, 73%, 59%)
HSVhsv(259, 68%, 89%)
CMYKcmyk(46.7%, 68.3%, 0%, 11%)
CIE-LABlab(44.58, 55.18, -71.50)
CIE-LCHlch(44.58, 90.32, 307.66°)
OKLaboklab(54.65% 0.0825 -0.2049)
OKLCHoklch(54.65% 0.221 291.9)
XYZxyz(24.0638, 14.2449, 74.1398)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948E3 #B2E348
analogous
#4864E3 #7948E3 #C748E3
triadic
#7948E3 #E37948 #48E379
tetradic
#7948E3 #E34864 #B2E348 #48E3C7
square
#7948E3 #E34864 #B2E348 #48E3C7
split-complementary
#7948E3 #E3C748 #64E348
monochromatic
#401799 #5720CE #7948E3 #A07DEB #C7B2F3

Accessibility & contrast

On white

5.46
#7948E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7948E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948E3
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948E3#FFFFFF#000000##FFFFFF
##7948E31.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE8
Deuteranopia (green-blind)
#0066E0
Tritanopia (blue-blind)
#586F90
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7948e3;
/* rgb */ color: rgb(121, 72, 227);
/* oklch */ color: oklch(54.6% 0.221 291.9);
Tailwind
colors: {
  custom: {
    50: '#a87eed',
    500: '#7948e3',
    950: '#000000',
  },
}
SCSS
$custom: #7948e3;
$custom-light: #a87eed;
$custom-dark: #000000;
JSON
{
  "hex": "#7948e3",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 227
  },
  "hsl": {
    "h": 258.968,
    "s": 73.46,
    "l": 58.627
  },
  "oklch": {
    "l": 0.54646,
    "c": 0.22087,
    "h": 291.9
  },
  "luminance": 0.14246
}

Semantic roles & 50–950 ramp

primary
#7948E3
secondary
#CFE2A5
accent
#F038B6
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7948E3

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

Preview Lab → · Contrast checker → · Palette generator →

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