#7948B9#7948B9

#7948B9 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.5% C 0.172 H 300.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7948B9
RGBrgb(121, 72, 185)
HSLhsl(266, 45%, 50%)
HSVhsv(266, 61%, 73%)
CMYKcmyk(34.6%, 61.1%, 0%, 27.5%)
CIE-LABlab(41.54, 44.14, -52.21)
CIE-LCHlch(41.54, 68.37, 310.21°)
OKLaboklab(51.49% 0.0871 -0.1482)
OKLCHoklch(51.49% 0.172 300.4)
XYZxyz(18.9574, 12.2023, 47.2461)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948B9 #88B948
analogous
#484FB9 #7948B9 #B248B9
triadic
#7948B9 #B97948 #48B979
tetradic
#7948B9 #B9484F #88B948 #48B9B2
square
#7948B9 #B9484F #88B948 #48B9B2
split-complementary
#7948B9 #B9B248 #4FB948
monochromatic
#3F2561 #5C368E #7948B9 #9974CA #BAA1DB

Accessibility & contrast

On white

6.10
#7948B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7948B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948B9
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948B9#FFFFFF#000000##FFFFFF
##7948B91.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#2161B6
Tritanopia (blue-blind)
#6B607A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7948b9;
/* rgb */ color: rgb(121, 72, 185);
/* oklch */ color: oklch(51.5% 0.172 300.4);
Tailwind
colors: {
  custom: {
    50: '#a47dcf',
    500: '#7948b9',
    950: '#000000',
  },
}
SCSS
$custom: #7948b9;
$custom-light: #a47dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7948b9",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 185
  },
  "hsl": {
    "h": 266.018,
    "s": 44.664,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5149,
    "c": 0.17186,
    "h": 300.4
  },
  "luminance": 0.12202
}

Semantic roles & 50–950 ramp

primary
#7948B9
secondary
#B2C895
accent
#D4539C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7948B9

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

Preview Lab → · Contrast checker → · Palette generator →

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