#7945C5#7945C5

#7945C5 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.190 H 298.1°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7945C5
RGBrgb(121, 69, 197)
HSLhsl(264, 52%, 52%)
HSVhsv(264, 65%, 77%)
CMYKcmyk(38.6%, 65%, 0%, 22.7%)
CIE-LABlab(41.77, 48.82, -58.84)
CIE-LCHlch(41.77, 76.46, 309.69°)
OKLaboklab(51.92% 0.0896 -0.1676)
OKLCHoklch(51.92% 0.19 298.1)
XYZxyz(20.0888, 12.3521, 54.1383)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945C5 #91C545
analogous
#4551C5 #7945C5 #B945C5
triadic
#7945C5 #C57945 #45C579
tetradic
#7945C5 #C54551 #91C545 #45C5B9
square
#7945C5 #C54551 #91C545 #45C5B9
split-complementary
#7945C5 #C5B945 #51C545
monochromatic
#41226D #5C319C #7945C5 #9B74D4 #BCA2E2

Accessibility & contrast

On white

6.05
#7945C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7945C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945C5
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945C5#FFFFFF#000000##FFFFFF
##7945C51.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#67627F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7945c5;
/* rgb */ color: rgb(121, 69, 197);
/* oklch */ color: oklch(51.9% 0.190 298.1);
Tailwind
colors: {
  custom: {
    50: '#a57cd7',
    500: '#7945c5',
    950: '#000000',
  },
}
SCSS
$custom: #7945c5;
$custom-light: #a57cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7945c5",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 264.375,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51923,
    "c": 0.19011,
    "h": 298.1
  },
  "luminance": 0.12352
}

Semantic roles & 50–950 ramp

primary
#7945C5
secondary
#B8CF97
accent
#DC4CA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7945C5

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

Preview Lab → · Contrast checker → · Palette generator →

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