#7948BB#7948BB

#7948BB is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.6% C 0.174 H 299.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7948BB
RGBrgb(121, 72, 187)
HSLhsl(266, 46%, 51%)
HSVhsv(266, 61%, 73%)
CMYKcmyk(35.3%, 61.5%, 0%, 26.7%)
CIE-LABlab(41.67, 44.65, -53.17)
CIE-LCHlch(41.67, 69.43, 310.02°)
OKLaboklab(51.63% 0.087 -0.151)
OKLCHoklch(51.63% 0.174 299.9)
XYZxyz(19.1700, 12.2874, 48.3658)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948BB #8ABB48
analogous
#4850BB #7948BB #B248BB
triadic
#7948BB #BB7948 #48BB79
tetradic
#7948BB #BB4850 #8ABB48 #48BBB2
square
#7948BB #BB4850 #8ABB48 #48BBB2
split-complementary
#7948BB #BBB248 #50BB48
monochromatic
#402564 #5C3690 #7948BB #9A75CC #BAA1DC

Accessibility & contrast

On white

6.07
#7948BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7948BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948BB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948BB#FFFFFF#000000##FFFFFF
##7948BB1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#1E61B8
Tritanopia (blue-blind)
#6B617B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7948bb;
/* rgb */ color: rgb(121, 72, 187);
/* oklch */ color: oklch(51.6% 0.174 299.9);
Tailwind
colors: {
  custom: {
    50: '#a47dd0',
    500: '#7948bb',
    950: '#000000',
  },
}
SCSS
$custom: #7948bb;
$custom-light: #a47dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7948bb",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 265.565,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5163,
    "c": 0.17424,
    "h": 299.9
  },
  "luminance": 0.12288
}

Semantic roles & 50–950 ramp

primary
#7948BB
secondary
#B3C996
accent
#D5529E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7948BB

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

Preview Lab → · Contrast checker → · Palette generator →

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