#7945AF#7945AF

#7945AF is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.4% C 0.164 H 303.6°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7945AF
RGBrgb(121, 69, 175)
HSLhsl(269, 43%, 48%)
HSVhsv(269, 61%, 69%)
CMYKcmyk(30.9%, 60.6%, 0%, 31.4%)
CIE-LABlab(40.27, 43.24, -48.35)
CIE-LCHlch(40.27, 64.87, 311.80°)
OKLaboklab(50.36% 0.0911 -0.1368)
OKLCHoklch(50.36% 0.164 303.6)
XYZxyz(17.7494, 11.4164, 41.8176)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945AF #7BAF45
analogous
#4546AF #7945AF #AE45AF
triadic
#7945AF #AF7945 #45AF79
tetradic
#7945AF #AF4546 #7BAF45 #45AFAE
square
#7945AF #AF4546 #7BAF45 #45AFAE
split-complementary
#7945AF #AFAE45 #46AF45
monochromatic
#3C2257 #5B3483 #7945AF #986CC5 #B798D6

Accessibility & contrast

On white

6.40
#7945AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7945AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945AF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945AF#FFFFFF#000000##FFFFFF
##7945AF1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5EB2
Deuteranopia (green-blind)
#2B5FAD
Tritanopia (blue-blind)
#6F5B73
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7945af;
/* rgb */ color: rgb(121, 69, 175);
/* oklch */ color: oklch(50.4% 0.164 303.6);
Tailwind
colors: {
  custom: {
    50: '#a37bc7',
    500: '#7945af',
    950: '#000000',
  },
}
SCSS
$custom: #7945af;
$custom-light: #a37bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7945af",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 269.434,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50361,
    "c": 0.16436,
    "h": 303.6
  },
  "luminance": 0.11416
}

Semantic roles & 50–950 ramp

primary
#7945AF
secondary
#A8C28D
accent
#D35595
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7945AF

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

Preview Lab → · Contrast checker → · Palette generator →

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