#7945B7#7945B7

#7945B7 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.174 H 301.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7945B7
RGBrgb(121, 69, 183)
HSLhsl(267, 45%, 49%)
HSVhsv(267, 62%, 72%)
CMYKcmyk(33.9%, 62.3%, 0%, 28.2%)
CIE-LABlab(40.80, 45.24, -52.23)
CIE-LCHlch(40.80, 69.10, 310.90°)
OKLaboklab(50.91% 0.0908 -0.1482)
OKLCHoklch(50.91% 0.174 301.5)
XYZxyz(18.5585, 11.7400, 46.0789)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945B7 #83B745
analogous
#454AB7 #7945B7 #B245B7
triadic
#7945B7 #B77945 #45B779
tetradic
#7945B7 #B7454A #83B745 #45B7B2
square
#7945B7 #B7454A #83B745 #45B7B2
split-complementary
#7945B7 #B7B245 #4AB745
monochromatic
#3E235E #5C348B #7945B7 #9970C9 #B99DDA

Accessibility & contrast

On white

6.27
#7945B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7945B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945B7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945B7#FFFFFF#000000##FFFFFF
##7945B71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#1F60B4
Tritanopia (blue-blind)
#6C5D77
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7945b7;
/* rgb */ color: rgb(121, 69, 183);
/* oklch */ color: oklch(50.9% 0.174 301.5);
Tailwind
colors: {
  custom: {
    50: '#a47bcd',
    500: '#7945b7',
    950: '#000000',
  },
}
SCSS
$custom: #7945b7;
$custom-light: #a47bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7945b7",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 267.368,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50913,
    "c": 0.17378,
    "h": 301.5
  },
  "luminance": 0.1174
}

Semantic roles & 50–950 ramp

primary
#7945B7
secondary
#AEC692
accent
#D5539A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7945B7

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

Preview Lab → · Contrast checker → · Palette generator →

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