#7948BF#7948BF

#7948BF is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.9% C 0.179 H 299.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7948BF
RGBrgb(121, 72, 191)
HSLhsl(265, 48%, 52%)
HSVhsv(265, 62%, 75%)
CMYKcmyk(36.6%, 62.3%, 0%, 25.1%)
CIE-LABlab(41.94, 45.68, -55.07)
CIE-LCHlch(41.94, 71.55, 309.67°)
OKLaboklab(51.91% 0.0867 -0.1566)
OKLCHoklch(51.91% 0.179 299)
XYZxyz(19.6042, 12.4610, 50.6525)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948BF #8EBF48
analogous
#4853BF #7948BF #B548BF
triadic
#7948BF #BF7948 #48BF79
tetradic
#7948BF #BF4853 #8EBF48 #48BFB5
square
#7948BF #BF4853 #8EBF48 #48BFB5
split-complementary
#7948BF #BFB548 #53BF48
monochromatic
#402468 #5C3496 #7948BF #9A75CF #BBA3DF

Accessibility & contrast

On white

6.01
#7948BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7948BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948BF
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948BF#FFFFFF#000000##FFFFFF
##7948BF1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#1462BC
Tritanopia (blue-blind)
#69627D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7948bf;
/* rgb */ color: rgb(121, 72, 191);
/* oklch */ color: oklch(51.9% 0.179 299.0);
Tailwind
colors: {
  custom: {
    50: '#a47dd3',
    500: '#7948bf',
    950: '#000000',
  },
}
SCSS
$custom: #7948bf;
$custom-light: #a47dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7948bf",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 264.706,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51913,
    "c": 0.179,
    "h": 299
  },
  "luminance": 0.12461
}

Semantic roles & 50–950 ramp

primary
#7948BF
secondary
#B6CC97
accent
#D850A0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7948BF

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

Preview Lab → · Contrast checker → · Palette generator →

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