#7948BC#7948BC

#7948BC is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.7% C 0.175 H 299.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7948BC
RGBrgb(121, 72, 188)
HSLhsl(265, 46%, 51%)
HSVhsv(265, 62%, 74%)
CMYKcmyk(35.6%, 61.7%, 0%, 26.3%)
CIE-LABlab(41.74, 44.91, -53.65)
CIE-LCHlch(41.74, 69.96, 309.93°)
OKLaboklab(51.7% 0.0869 -0.1524)
OKLCHoklch(51.7% 0.175 299.7)
XYZxyz(19.2774, 12.3303, 48.9316)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948BC #8BBC48
analogous
#4851BC #7948BC #B348BC
triadic
#7948BC #BC7948 #48BC79
tetradic
#7948BC #BC4851 #8BBC48 #48BCB3
square
#7948BC #BC4851 #8BBC48 #48BCB3
split-complementary
#7948BC #BCB348 #51BC48
monochromatic
#402565 #5C3592 #7948BC #9A75CC #BBA2DD

Accessibility & contrast

On white

6.06
#7948BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7948BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948BC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948BC#FFFFFF#000000##FFFFFF
##7948BC1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#1C62B9
Tritanopia (blue-blind)
#6A617B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7948bc;
/* rgb */ color: rgb(121, 72, 188);
/* oklch */ color: oklch(51.7% 0.175 299.7);
Tailwind
colors: {
  custom: {
    50: '#a47dd1',
    500: '#7948bc',
    950: '#000000',
  },
}
SCSS
$custom: #7948bc;
$custom-light: #a47dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7948bc",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 265.345,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.517,
    "c": 0.17543,
    "h": 299.7
  },
  "luminance": 0.12331
}

Semantic roles & 50–950 ramp

primary
#7948BC
secondary
#B4CA96
accent
#D6529E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7948BC

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

Preview Lab → · Contrast checker → · Palette generator →

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