#7D45C9#7D45C9

#7D45C9 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.195 H 299.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7D45C9
RGBrgb(125, 69, 201)
HSLhsl(265, 55%, 53%)
HSVhsv(265, 66%, 79%)
CMYKcmyk(37.8%, 65.7%, 0%, 21.2%)
CIE-LABlab(42.51, 50.67, -59.94)
CIE-LCHlch(42.51, 78.49, 310.21°)
OKLaboklab(52.65% 0.0947 -0.1708)
OKLCHoklch(52.65% 0.195 299)
XYZxyz(21.1255, 12.8330, 56.6110)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45C9 #91C945
analogous
#454FC9 #7D45C9 #BF45C9
triadic
#7D45C9 #C97D45 #45C97D
tetradic
#7D45C9 #C9454F #91C945 #45C9BF
square
#7D45C9 #C9454F #91C945 #45C9BF
split-complementary
#7D45C9 #C9BF45 #4FC945
monochromatic
#442172 #602FA2 #7D45C9 #9E74D7 #BFA4E5

Accessibility & contrast

On white

5.89
#7D45C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7D45C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45C9
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45C9#FFFFFF#000000##FFFFFF
##7D45C91.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)
#0064CD
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#6C6381
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d45c9;
/* rgb */ color: rgb(125, 69, 201);
/* oklch */ color: oklch(52.6% 0.195 299.0);
Tailwind
colors: {
  custom: {
    50: '#a87cda',
    500: '#7d45c9',
    950: '#000000',
  },
}
SCSS
$custom: #7d45c9;
$custom-light: #a87cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45c9",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 265.455,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52649,
    "c": 0.19525,
    "h": 299
  },
  "luminance": 0.12833
}

Semantic roles & 50–950 ramp

primary
#7D45C9
secondary
#B9D198
accent
#DE499F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D45C9

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

Preview Lab → · Contrast checker → · Palette generator →

#7D45C9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva