#7945CF#7945CF

#7945CF is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.7% C 0.202 H 296.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7945CF
RGBrgb(121, 69, 207)
HSLhsl(263, 59%, 54%)
HSVhsv(263, 67%, 81%)
CMYKcmyk(41.5%, 66.7%, 0%, 18.8%)
CIE-LABlab(42.50, 51.42, -63.45)
CIE-LCHlch(42.50, 81.67, 309.02°)
OKLaboklab(52.68% 0.0885 -0.1812)
OKLCHoklch(52.68% 0.202 296)
XYZxyz(21.2728, 12.8257, 60.3742)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945CF #9BCF45
analogous
#4556CF #7945CF #BE45CF
triadic
#7945CF #CF7945 #45CF79
tetradic
#7945CF #CF4556 #9BCF45 #45CFBE
square
#7945CF #CF4556 #9BCF45 #45CFBE
split-complementary
#7945CF #CFBE45 #56CF45
monochromatic
#42207A #5C2CAB #7945CF #9C76DC #BFA6E8

Accessibility & contrast

On white

5.89
#7945CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7945CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945CF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945CF#FFFFFF#000000##FFFFFF
##7945CF1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#636684
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7945cf;
/* rgb */ color: rgb(121, 69, 207);
/* oklch */ color: oklch(52.7% 0.202 296.0);
Tailwind
colors: {
  custom: {
    50: '#a67cdf',
    500: '#7945cf',
    950: '#000000',
  },
}
SCSS
$custom: #7945cf;
$custom-light: #a67cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#7945cf",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 262.609,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52677,
    "c": 0.20164,
    "h": 296
  },
  "luminance": 0.12826
}

Semantic roles & 50–950 ramp

primary
#7945CF
secondary
#BFD59B
accent
#E246A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7945CF

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

Preview Lab → · Contrast checker → · Palette generator →

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