#7945BC#7945BC

#7945BC is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.3% C 0.180 H 300.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7945BC
RGBrgb(121, 69, 188)
HSLhsl(266, 47%, 50%)
HSVhsv(266, 63%, 74%)
CMYKcmyk(35.6%, 63.3%, 0%, 26.3%)
CIE-LABlab(41.14, 46.51, -54.61)
CIE-LCHlch(41.14, 71.73, 310.42°)
OKLaboklab(51.27% 0.0904 -0.1552)
OKLCHoklch(51.27% 0.18 300.2)
XYZxyz(19.0882, 11.9519, 48.8685)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945BC #88BC45
analogous
#454CBC #7945BC #B445BC
triadic
#7945BC #BC7945 #45BC79
tetradic
#7945BC #BC454C #88BC45 #45BCB4
square
#7945BC #BC454C #88BC45 #45BCB4
split-complementary
#7945BC #BCB445 #4CBC45
monochromatic
#3F2463 #5C3490 #7945BC #9972CC #BA9FDC

Accessibility & contrast

On white

6.19
#7945BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7945BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945BC
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945BC#FFFFFF#000000##FFFFFF
##7945BC1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#1460B9
Tritanopia (blue-blind)
#6B5F7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7945bc;
/* rgb */ color: rgb(121, 69, 188);
/* oklch */ color: oklch(51.3% 0.180 300.2);
Tailwind
colors: {
  custom: {
    50: '#a47bd1',
    500: '#7945bc',
    950: '#000000',
  },
}
SCSS
$custom: #7945bc;
$custom-light: #a47bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7945bc",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 266.218,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51267,
    "c": 0.17964,
    "h": 300.2
  },
  "luminance": 0.11952
}

Semantic roles & 50–950 ramp

primary
#7945BC
secondary
#B2C994
accent
#D7519C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7945BC

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

Preview Lab → · Contrast checker → · Palette generator →

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