#7948CF#7948CF

#7948CF is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.1% C 0.198 H 295.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7948CF
RGBrgb(121, 72, 207)
HSLhsl(262, 58%, 55%)
HSVhsv(262, 65%, 81%)
CMYKcmyk(41.5%, 65.2%, 0%, 18.8%)
CIE-LABlab(43.07, 49.86, -62.52)
CIE-LCHlch(43.07, 79.97, 308.57°)
OKLaboklab(53.09% 0.0853 -0.1785)
OKLCHoklch(53.09% 0.198 295.6)
XYZxyz(21.4620, 13.2042, 60.4373)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948CF #9ECF48
analogous
#485ACF #7948CF #BD48CF
triadic
#7948CF #CF7948 #48CF79
tetradic
#7948CF #CF485A #9ECF48 #48CFBD
square
#7948CF #CF485A #9ECF48 #48CFBD
split-complementary
#7948CF #CFBD48 #5ACF48
monochromatic
#42217C #5B2DAD #7948CF #9D78DC #C0A9E8

Accessibility & contrast

On white

5.77
#7948CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7948CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948CF
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948CF#FFFFFF#000000##FFFFFF
##7948CF1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0064CC
Tritanopia (blue-blind)
#636885
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7948cf;
/* rgb */ color: rgb(121, 72, 207);
/* oklch */ color: oklch(53.1% 0.198 295.6);
Tailwind
colors: {
  custom: {
    50: '#a67edf',
    500: '#7948cf',
    950: '#000000',
  },
}
SCSS
$custom: #7948cf;
$custom-light: #a67edf;
$custom-dark: #000000;
JSON
{
  "hex": "#7948cf",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 261.778,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.53087,
    "c": 0.19783,
    "h": 295.6
  },
  "luminance": 0.13205
}

Semantic roles & 50–950 ramp

primary
#7948CF
secondary
#C1D69D
accent
#E246A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7948CF

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

Preview Lab → · Contrast checker → · Palette generator →

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