#7948D2#7948D2

#7948D2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.3% C 0.201 H 295.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7948D2
RGBrgb(121, 72, 210)
HSLhsl(261, 61%, 55%)
HSVhsv(261, 66%, 82%)
CMYKcmyk(42.4%, 65.7%, 0%, 17.6%)
CIE-LABlab(43.29, 50.66, -63.89)
CIE-LCHlch(43.29, 81.54, 308.41°)
OKLaboklab(53.32% 0.085 -0.1825)
OKLCHoklch(53.32% 0.201 295)
XYZxyz(21.8323, 13.3523, 62.3872)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948D2 #A1D248
analogous
#485CD2 #7948D2 #BE48D2
triadic
#7948D2 #D27948 #48D279
tetradic
#7948D2 #D2485C #A1D248 #48D2BE
square
#7948D2 #D2485C #A1D248 #48D2BE
split-complementary
#7948D2 #D2BE48 #5CD248
monochromatic
#422080 #5B2CB1 #7948D2 #9D79DE #C1AAEA

Accessibility & contrast

On white

5.72
#7948D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7948D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948D2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948D2#FFFFFF#000000##FFFFFF
##7948D21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#616987
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7948d2;
/* rgb */ color: rgb(121, 72, 210);
/* oklch */ color: oklch(53.3% 0.201 295.0);
Tailwind
colors: {
  custom: {
    50: '#a67ee1',
    500: '#7948d2',
    950: '#000000',
  },
}
SCSS
$custom: #7948d2;
$custom-light: #a67ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#7948d2",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 261.304,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.53315,
    "c": 0.20132,
    "h": 295
  },
  "luminance": 0.13353
}

Semantic roles & 50–950 ramp

primary
#7948D2
secondary
#C3D89E
accent
#E444AB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7948D2

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

Preview Lab → · Contrast checker → · Palette generator →

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