#7948E8#7948E8

#7948E8 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.0% C 0.227 H 291.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7948E8
RGBrgb(121, 72, 232)
HSLhsl(258, 78%, 60%)
HSVhsv(258, 69%, 91%)
CMYKcmyk(47.8%, 69%, 0%, 9%)
CIE-LABlab(44.98, 56.52, -73.69)
CIE-LCHlch(44.98, 92.87, 307.49°)
OKLaboklab(55.05% 0.0817 -0.2113)
OKLCHoklch(55.05% 0.227 291.1)
XYZxyz(24.7639, 14.5249, 77.8271)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948E8 #B7E848
analogous
#4867E8 #7948E8 #C948E8
triadic
#7948E8 #E87948 #48E879
tetradic
#7948E8 #E84867 #B7E848 #48E8C9
square
#7948E8 #E84867 #B7E848 #48E8C9
split-complementary
#7948E8 #E8C948 #67E848
monochromatic
#3F14A1 #551BD8 #7948E8 #A17EEF #C9B5F6

Accessibility & contrast

On white

5.38
#7948E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7948E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948E8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948E8#FFFFFF#000000##FFFFFF
##7948E81.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#0067E5
Tritanopia (blue-blind)
#557193
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7948e8;
/* rgb */ color: rgb(121, 72, 232);
/* oklch */ color: oklch(55.0% 0.227 291.1);
Tailwind
colors: {
  custom: {
    50: '#a97ff0',
    500: '#7948e8',
    950: '#000000',
  },
}
SCSS
$custom: #7948e8;
$custom-light: #a97ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#7948e8",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 232
  },
  "hsl": {
    "h": 258.375,
    "s": 77.67,
    "l": 59.608
  },
  "oklch": {
    "l": 0.5505,
    "c": 0.22654,
    "h": 291.1
  },
  "luminance": 0.14526
}

Semantic roles & 50–950 ramp

primary
#7948E8
secondary
#D2E5A7
accent
#F434B9
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7948E8

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

Preview Lab → · Contrast checker → · Palette generator →

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