#7948B2#7948B2

#7948B2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.0% C 0.163 H 302.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7948B2
RGBrgb(121, 72, 178)
HSLhsl(268, 42%, 49%)
HSVhsv(268, 60%, 70%)
CMYKcmyk(32%, 59.6%, 0%, 30.2%)
CIE-LABlab(41.08, 42.35, -48.83)
CIE-LCHlch(41.08, 64.64, 310.94°)
OKLaboklab(51.01% 0.0872 -0.1382)
OKLCHoklch(51.01% 0.163 302.3)
XYZxyz(18.2365, 11.9140, 43.4497)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948B2 #81B248
analogous
#484CB2 #7948B2 #AE48B2
triadic
#7948B2 #B27948 #48B279
tetradic
#7948B2 #B2484C #81B248 #48B2AE
square
#7948B2 #B2484C #81B248 #48B2AE
split-complementary
#7948B2 #B2AE48 #4CB248
monochromatic
#3E255B #5B3686 #7948B2 #9871C6 #B89DD7

Accessibility & contrast

On white

6.21
#7948B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7948B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948B2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948B2#FFFFFF#000000##FFFFFF
##7948B21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1260B5
Deuteranopia (green-blind)
#2B60B0
Tritanopia (blue-blind)
#6E5E76
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7948b2;
/* rgb */ color: rgb(121, 72, 178);
/* oklch */ color: oklch(51.0% 0.163 302.3);
Tailwind
colors: {
  custom: {
    50: '#a37dca',
    500: '#7948b2',
    950: '#000000',
  },
}
SCSS
$custom: #7948b2;
$custom-light: #a37dca;
$custom-dark: #000000;
JSON
{
  "hex": "#7948b2",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 267.736,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51011,
    "c": 0.16347,
    "h": 302.3
  },
  "luminance": 0.11914
}

Semantic roles & 50–950 ramp

primary
#7948B2
secondary
#ADC492
accent
#D25699
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7948B2

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

Preview Lab → · Contrast checker → · Palette generator →

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