#7945B9#7945B9

#7945B9 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.176 H 301.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7945B9
RGBrgb(121, 69, 185)
HSLhsl(267, 46%, 50%)
HSVhsv(267, 63%, 73%)
CMYKcmyk(34.6%, 62.7%, 0%, 27.5%)
CIE-LABlab(40.93, 45.75, -53.18)
CIE-LCHlch(40.93, 70.15, 310.70°)
OKLaboklab(51.05% 0.0906 -0.151)
OKLCHoklch(51.05% 0.176 301)
XYZxyz(18.7681, 11.8239, 47.1830)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945B9 #85B945
analogous
#454BB9 #7945B9 #B345B9
triadic
#7945B9 #B97945 #45B979
tetradic
#7945B9 #B9454B #85B945 #45B9B3
square
#7945B9 #B9454B #85B945 #45B9B3
split-complementary
#7945B9 #B9B345 #4BB945
monochromatic
#3F2460 #5C348C #7945B9 #9971CA #B99EDB

Accessibility & contrast

On white

6.24
#7945B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7945B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945B9
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945B9#FFFFFF#000000##FFFFFF
##7945B91.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#1B60B6
Tritanopia (blue-blind)
#6C5E78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7945b9;
/* rgb */ color: rgb(121, 69, 185);
/* oklch */ color: oklch(51.1% 0.176 301.0);
Tailwind
colors: {
  custom: {
    50: '#a47bcf',
    500: '#7945b9',
    950: '#000000',
  },
}
SCSS
$custom: #7945b9;
$custom-light: #a47bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7945b9",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 185
  },
  "hsl": {
    "h": 266.897,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51054,
    "c": 0.17613,
    "h": 301
  },
  "luminance": 0.11824
}

Semantic roles & 50–950 ramp

primary
#7945B9
secondary
#B0C793
accent
#D5529B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7945B9

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

Preview Lab → · Contrast checker → · Palette generator →

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