#7D45C5#7D45C5

#7D45C5 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.191 H 299.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7D45C5
RGBrgb(125, 69, 197)
HSLhsl(266, 52%, 52%)
HSVhsv(266, 65%, 77%)
CMYKcmyk(36.5%, 65%, 0%, 22.7%)
CIE-LABlab(42.23, 49.66, -58.08)
CIE-LCHlch(42.23, 76.41, 310.53°)
OKLaboklab(52.36% 0.0951 -0.1653)
OKLCHoklch(52.36% 0.191 299.9)
XYZxyz(20.6611, 12.6473, 54.1651)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45C5 #8DC545
analogous
#454DC5 #7D45C5 #BD45C5
triadic
#7D45C5 #C57D45 #45C57D
tetradic
#7D45C5 #C5454D #8DC545 #45C5BD
square
#7D45C5 #C5454D #8DC545 #45C5BD
split-complementary
#7D45C5 #C5BD45 #4DC545
monochromatic
#43226D #60319C #7D45C5 #9E74D4 #BEA2E2

Accessibility & contrast

On white

5.95
#7D45C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7D45C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45C5
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45C5#FFFFFF#000000##FFFFFF
##7D45C51.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0063C2
Tritanopia (blue-blind)
#6D627F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d45c5;
/* rgb */ color: rgb(125, 69, 197);
/* oklch */ color: oklch(52.4% 0.191 299.9);
Tailwind
colors: {
  custom: {
    50: '#a87cd7',
    500: '#7d45c5',
    950: '#000000',
  },
}
SCSS
$custom: #7d45c5;
$custom-light: #a87cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45c5",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 266.25,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52355,
    "c": 0.19069,
    "h": 299.9
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#7D45C5
secondary
#B6CF97
accent
#DC4C9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7D45C5

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

Preview Lab → · Contrast checker → · Palette generator →

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