#7945BA#7945BA

#7945BA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.1% C 0.177 H 300.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7945BA
RGBrgb(121, 69, 186)
HSLhsl(267, 46%, 50%)
HSVhsv(267, 63%, 73%)
CMYKcmyk(34.9%, 62.9%, 0%, 27.1%)
CIE-LABlab(41.00, 46.01, -53.66)
CIE-LCHlch(41.00, 70.68, 310.61°)
OKLaboklab(51.13% 0.0906 -0.1524)
OKLCHoklch(51.13% 0.177 300.7)
XYZxyz(18.8741, 11.8662, 47.7409)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945BA #86BA45
analogous
#454BBA #7945BA #B445BA
triadic
#7945BA #BA7945 #45BA79
tetradic
#7945BA #BA454B #86BA45 #45BAB4
square
#7945BA #BA454B #86BA45 #45BAB4
split-complementary
#7945BA #BAB445 #4BBA45
monochromatic
#3F2461 #5C348D #7945BA #9972CB #B99EDB

Accessibility & contrast

On white

6.23
#7945BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7945BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945BA
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945BA#FFFFFF#000000##FFFFFF
##7945BA1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#1960B7
Tritanopia (blue-blind)
#6B5E79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7945ba;
/* rgb */ color: rgb(121, 69, 186);
/* oklch */ color: oklch(51.1% 0.177 300.7);
Tailwind
colors: {
  custom: {
    50: '#a47bcf',
    500: '#7945ba',
    950: '#000000',
  },
}
SCSS
$custom: #7945ba;
$custom-light: #a47bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7945ba",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 266.667,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.51125,
    "c": 0.1773,
    "h": 300.7
  },
  "luminance": 0.11866
}

Semantic roles & 50–950 ramp

primary
#7945BA
secondary
#B0C893
accent
#D6529B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7945BA

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

Preview Lab → · Contrast checker → · Palette generator →

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