#7948CB#7948CB

#7948CB is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.193 H 296.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7948CB
RGBrgb(121, 72, 203)
HSLhsl(262, 56%, 54%)
HSVhsv(262, 65%, 80%)
CMYKcmyk(40.4%, 64.5%, 0%, 20.4%)
CIE-LABlab(42.78, 48.81, -60.68)
CIE-LCHlch(42.78, 77.88, 308.81°)
OKLaboklab(52.79% 0.0858 -0.1731)
OKLCHoklch(52.79% 0.193 296.4)
XYZxyz(20.9792, 13.0111, 57.8944)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948CB #9ACB48
analogous
#4859CB #7948CB #BB48CB
triadic
#7948CB #CB7948 #48CB79
tetradic
#7948CB #CB4859 #9ACB48 #48CBBB
square
#7948CB #CB4859 #9ACB48 #48CBBB
split-complementary
#7948CB #CBBB48 #59CB48
monochromatic
#422277 #5C2FA6 #7948CB #9C78D9 #BFA7E6

Accessibility & contrast

On white

5.83
#7948CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7948CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948CB
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948CB#FFFFFF#000000##FFFFFF
##7948CB1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#646683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7948cb;
/* rgb */ color: rgb(121, 72, 203);
/* oklch */ color: oklch(52.8% 0.193 296.4);
Tailwind
colors: {
  custom: {
    50: '#a67edc',
    500: '#7948cb',
    950: '#000000',
  },
}
SCSS
$custom: #7948cb;
$custom-light: #a67edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7948cb",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 262.443,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52787,
    "c": 0.19316,
    "h": 296.4
  },
  "luminance": 0.13011
}

Semantic roles & 50–950 ramp

primary
#7948CB
secondary
#BED39B
accent
#DF49A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7948CB

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

Preview Lab → · Contrast checker → · Palette generator →

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