#7948CA#7948CA

#7948CA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.7% C 0.192 H 296.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7948CA
RGBrgb(121, 72, 202)
HSLhsl(263, 55%, 54%)
HSVhsv(263, 64%, 79%)
CMYKcmyk(40.1%, 64.4%, 0%, 20.8%)
CIE-LABlab(42.71, 48.55, -60.22)
CIE-LCHlch(42.71, 77.35, 308.87°)
OKLaboklab(52.71% 0.0859 -0.1717)
OKLCHoklch(52.71% 0.192 296.6)
XYZxyz(20.8604, 12.9636, 57.2688)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948CA #99CA48
analogous
#4858CA #7948CA #BA48CA
triadic
#7948CA #CA7948 #48CA79
tetradic
#7948CA #CA4858 #99CA48 #48CABA
square
#7948CA #CA4858 #99CA48 #48CABA
split-complementary
#7948CA #CABA48 #58CA48
monochromatic
#422276 #5C30A5 #7948CA #9C77D8 #BEA7E5

Accessibility & contrast

On white

5.85
#7948CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7948CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948CA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948CA#FFFFFF#000000##FFFFFF
##7948CA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#656683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7948ca;
/* rgb */ color: rgb(121, 72, 202);
/* oklch */ color: oklch(52.7% 0.192 296.6);
Tailwind
colors: {
  custom: {
    50: '#a57edb',
    500: '#7948ca',
    950: '#000000',
  },
}
SCSS
$custom: #7948ca;
$custom-light: #a57edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7948ca",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 262.615,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52713,
    "c": 0.19199,
    "h": 296.6
  },
  "luminance": 0.12964
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7948CA

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

Preview Lab → · Contrast checker → · Palette generator →

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