#7945D1#7945D1

#7945D1 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.8% C 0.204 H 295.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7945D1
RGBrgb(121, 69, 209)
HSLhsl(262, 60%, 55%)
HSVhsv(262, 67%, 82%)
CMYKcmyk(42.1%, 67%, 0%, 18%)
CIE-LABlab(42.65, 51.94, -64.36)
CIE-LCHlch(42.65, 82.70, 308.91°)
OKLaboklab(52.83% 0.0882 -0.1839)
OKLCHoklch(52.83% 0.204 295.6)
XYZxyz(21.5189, 12.9242, 61.6701)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945D1 #9DD145
analogous
#4557D1 #7945D1 #BF45D1
triadic
#7945D1 #D17945 #45D179
tetradic
#7945D1 #D14557 #9DD145 #45D1BF
square
#7945D1 #D14557 #9DD145 #45D1BF
split-complementary
#7945D1 #D1BF45 #57D145
monochromatic
#421F7D #5C2BAE #7945D1 #9C76DD #C0A7E9

Accessibility & contrast

On white

5.86
#7945D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7945D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945D1
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945D1#FFFFFF#000000##FFFFFF
##7945D11.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0063CE
Tritanopia (blue-blind)
#626785
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7945d1;
/* rgb */ color: rgb(121, 69, 209);
/* oklch */ color: oklch(52.8% 0.204 295.6);
Tailwind
colors: {
  custom: {
    50: '#a67ce0',
    500: '#7945d1',
    950: '#000000',
  },
}
SCSS
$custom: #7945d1;
$custom-light: #a67ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#7945d1",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 262.286,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52831,
    "c": 0.20393,
    "h": 295.6
  },
  "luminance": 0.12925
}

Semantic roles & 50–950 ramp

primary
#7945D1
secondary
#C1D79B
accent
#E344A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7945D1

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

Preview Lab → · Contrast checker → · Palette generator →

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