#7945BD#7945BD

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

Color values

HEX#7945BD
RGBrgb(121, 69, 189)
HSLhsl(266, 48%, 51%)
HSVhsv(266, 63%, 74%)
CMYKcmyk(36%, 63.5%, 0%, 25.9%)
CIE-LABlab(41.21, 46.77, -55.08)
CIE-LCHlch(41.21, 72.26, 310.33°)
OKLaboklab(51.34% 0.0904 -0.1566)
OKLCHoklch(51.34% 0.181 300)
XYZxyz(19.1963, 11.9952, 49.4382)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945BD #89BD45
analogous
#454DBD #7945BD #B545BD
triadic
#7945BD #BD7945 #45BD79
tetradic
#7945BD #BD454D #89BD45 #45BDB5
square
#7945BD #BD454D #89BD45 #45BDB5
split-complementary
#7945BD #BDB545 #4DBD45
monochromatic
#3F2464 #5C3491 #7945BD #9A72CD #BA9FDD

Accessibility & contrast

On white

6.18
#7945BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7945BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945BD
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945BD#FFFFFF#000000##FFFFFF
##7945BD1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#1160BA
Tritanopia (blue-blind)
#6A5F7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7945bd;
/* rgb */ color: rgb(121, 69, 189);
/* oklch */ color: oklch(51.3% 0.181 300.0);
Tailwind
colors: {
  custom: {
    50: '#a47cd2',
    500: '#7945bd',
    950: '#000000',
  },
}
SCSS
$custom: #7945bd;
$custom-light: #a47cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7945bd",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 266,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51339,
    "c": 0.18081,
    "h": 300
  },
  "luminance": 0.11995
}

Semantic roles & 50–950 ramp

primary
#7945BD
secondary
#B2CA94
accent
#D7519D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7945BD

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

Preview Lab → · Contrast checker → · Palette generator →

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