#7948BE#7948BE

#7948BE is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.8% C 0.178 H 299.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7948BE
RGBrgb(121, 72, 190)
HSLhsl(265, 48%, 51%)
HSVhsv(265, 62%, 75%)
CMYKcmyk(36.3%, 62.1%, 0%, 25.5%)
CIE-LABlab(41.87, 45.42, -54.60)
CIE-LCHlch(41.87, 71.02, 309.76°)
OKLaboklab(51.84% 0.0868 -0.1552)
OKLCHoklch(51.84% 0.178 299.2)
XYZxyz(19.4945, 12.4172, 50.0749)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948BE #8DBE48
analogous
#4852BE #7948BE #B448BE
triadic
#7948BE #BE7948 #48BE79
tetradic
#7948BE #BE4852 #8DBE48 #48BEB4
square
#7948BE #BE4852 #8DBE48 #48BEB4
split-complementary
#7948BE #BEB448 #52BE48
monochromatic
#402567 #5C3594 #7948BE #9A75CE #BBA2DE

Accessibility & contrast

On white

6.03
#7948BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7948BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948BE
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948BE#FFFFFF#000000##FFFFFF
##7948BE1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#1762BB
Tritanopia (blue-blind)
#6A627C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7948be;
/* rgb */ color: rgb(121, 72, 190);
/* oklch */ color: oklch(51.8% 0.178 299.2);
Tailwind
colors: {
  custom: {
    50: '#a47dd2',
    500: '#7948be',
    950: '#000000',
  },
}
SCSS
$custom: #7948be;
$custom-light: #a47dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7948be",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 190
  },
  "hsl": {
    "h": 264.915,
    "s": 47.581,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51841,
    "c": 0.17782,
    "h": 299.2
  },
  "luminance": 0.12417
}

Semantic roles & 50–950 ramp

primary
#7948BE
secondary
#B5CB97
accent
#D7519F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7948BE

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

Preview Lab → · Contrast checker → · Palette generator →

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