#7945C3#7945C3

#7945C3 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.188 H 298.6°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7945C3
RGBrgb(121, 69, 195)
HSLhsl(265, 51%, 52%)
HSVhsv(265, 65%, 76%)
CMYKcmyk(37.9%, 64.6%, 0%, 23.5%)
CIE-LABlab(41.63, 48.31, -57.91)
CIE-LCHlch(41.63, 75.41, 309.84°)
OKLaboklab(51.78% 0.0899 -0.1649)
OKLCHoklch(51.78% 0.188 298.6)
XYZxyz(19.8611, 12.2611, 52.9394)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945C3 #8FC345
analogous
#4550C3 #7945C3 #B845C3
triadic
#7945C3 #C37945 #45C379
tetradic
#7945C3 #C34550 #8FC345 #45C3B8
square
#7945C3 #C34550 #8FC345 #45C3B8
split-complementary
#7945C3 #C3B845 #50C345
monochromatic
#40236B #5C3199 #7945C3 #9A73D2 #BCA2E1

Accessibility & contrast

On white

6.08
#7945C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7945C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945C3
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945C3#FFFFFF#000000##FFFFFF
##7945C31.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#0061C0
Tritanopia (blue-blind)
#68627E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7945c3;
/* rgb */ color: rgb(121, 69, 195);
/* oklch */ color: oklch(51.8% 0.188 298.6);
Tailwind
colors: {
  custom: {
    50: '#a57cd6',
    500: '#7945c3',
    950: '#000000',
  },
}
SCSS
$custom: #7945c3;
$custom-light: #a57cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#7945c3",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 195
  },
  "hsl": {
    "h": 264.762,
    "s": 51.22,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51775,
    "c": 0.1878,
    "h": 298.6
  },
  "luminance": 0.12261
}

Semantic roles & 50–950 ramp

primary
#7945C3
secondary
#B7CE96
accent
#DB4DA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7945C3

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

Preview Lab → · Contrast checker → · Palette generator →

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