#7948CD#7948CD

#7948CD is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.196 H 296.0°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7948CD
RGBrgb(121, 72, 205)
HSLhsl(262, 57%, 54%)
HSVhsv(262, 65%, 80%)
CMYKcmyk(41%, 64.9%, 0%, 19.6%)
CIE-LABlab(42.92, 49.34, -61.60)
CIE-LCHlch(42.92, 78.92, 308.69°)
OKLaboklab(52.94% 0.0856 -0.1758)
OKLCHoklch(52.94% 0.196 296)
XYZxyz(21.2191, 13.1070, 59.1577)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948CD #9CCD48
analogous
#485ACD #7948CD #BC48CD
triadic
#7948CD #CD7948 #48CD79
tetradic
#7948CD #CD485A #9CCD48 #48CDBC
square
#7948CD #CD485A #9CCD48 #48CDBC
split-complementary
#7948CD #CDBC48 #5ACD48
monochromatic
#422179 #5C2EA9 #7948CD #9C78DA #BFA8E7

Accessibility & contrast

On white

5.80
#7948CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7948CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948CD
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948CD#FFFFFF#000000##FFFFFF
##7948CD1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#636784
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7948cd;
/* rgb */ color: rgb(121, 72, 205);
/* oklch */ color: oklch(52.9% 0.196 296.0);
Tailwind
colors: {
  custom: {
    50: '#a67edd',
    500: '#7948cd',
    950: '#000000',
  },
}
SCSS
$custom: #7948cd;
$custom-light: #a67edd;
$custom-dark: #000000;
JSON
{
  "hex": "#7948cd",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 262.105,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52936,
    "c": 0.1955,
    "h": 296
  },
  "luminance": 0.13107
}

Semantic roles & 50–950 ramp

primary
#7948CD
secondary
#C0D59C
accent
#E047A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7948CD

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

Preview Lab → · Contrast checker → · Palette generator →

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