#7948DB#7948DB

#7948DB is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.0% C 0.212 H 293.3°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7948DB
RGBrgb(121, 72, 219)
HSLhsl(260, 67%, 57%)
HSVhsv(260, 67%, 86%)
CMYKcmyk(44.7%, 67.1%, 0%, 14.1%)
CIE-LABlab(43.96, 53.04, -67.95)
CIE-LCHlch(43.96, 86.20, 307.98°)
OKLaboklab(54.01% 0.0838 -0.1945)
OKLCHoklch(54.01% 0.212 293.3)
XYZxyz(22.9852, 13.8135, 68.4593)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948DB #AADB48
analogous
#4861DB #7948DB #C348DB
triadic
#7948DB #DB7948 #48DB79
tetradic
#7948DB #DB4861 #AADB48 #48DBC3
square
#7948DB #DB4861 #AADB48 #48DBC3
split-complementary
#7948DB #DBC348 #61DB48
monochromatic
#411C8D #5926C0 #7948DB #9E7BE5 #C4AEEF

Accessibility & contrast

On white

5.58
#7948DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7948DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948DB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948DB#FFFFFF#000000##FFFFFF
##7948DB1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#0065D8
Tritanopia (blue-blind)
#5D6C8C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7948db;
/* rgb */ color: rgb(121, 72, 219);
/* oklch */ color: oklch(54.0% 0.212 293.3);
Tailwind
colors: {
  custom: {
    50: '#a77ee7',
    500: '#7948db',
    950: '#000000',
  },
}
SCSS
$custom: #7948db;
$custom-light: #a77ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#7948db",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 260,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54011,
    "c": 0.21173,
    "h": 293.3
  },
  "luminance": 0.13814
}

Semantic roles & 50–950 ramp

primary
#7948DB
secondary
#C9DDA2
accent
#EA3EB1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7948DB

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

Preview Lab → · Contrast checker → · Palette generator →

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