#7D45C6#7D45C6

#7D45C6 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.192 H 299.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7D45C6
RGBrgb(125, 69, 198)
HSLhsl(266, 53%, 52%)
HSVhsv(266, 65%, 78%)
CMYKcmyk(36.9%, 65.2%, 0%, 22.4%)
CIE-LABlab(42.30, 49.91, -58.55)
CIE-LCHlch(42.30, 76.93, 310.45°)
OKLaboklab(52.43% 0.095 -0.1666)
OKLCHoklch(52.43% 0.192 299.7)
XYZxyz(20.7761, 12.6932, 54.7706)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45C6 #8EC645
analogous
#454DC6 #7D45C6 #BE45C6
triadic
#7D45C6 #C67D45 #45C67D
tetradic
#7D45C6 #C6454D #8EC645 #45C6BE
square
#7D45C6 #C6454D #8EC645 #45C6BE
split-complementary
#7D45C6 #C6BE45 #4DC645
monochromatic
#43226F #60309E #7D45C6 #9E74D4 #BEA3E3

Accessibility & contrast

On white

5.93
#7D45C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7D45C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45C6
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45C6#FFFFFF#000000##FFFFFF
##7D45C61.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#0063C3
Tritanopia (blue-blind)
#6D627F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d45c6;
/* rgb */ color: rgb(125, 69, 198);
/* oklch */ color: oklch(52.4% 0.192 299.7);
Tailwind
colors: {
  custom: {
    50: '#a87cd8',
    500: '#7d45c6',
    950: '#000000',
  },
}
SCSS
$custom: #7d45c6;
$custom-light: #a87cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45c6",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 198
  },
  "hsl": {
    "h": 266.047,
    "s": 53.086,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52428,
    "c": 0.19183,
    "h": 299.7
  },
  "luminance": 0.12693
}

Semantic roles & 50–950 ramp

primary
#7D45C6
secondary
#B7CF97
accent
#DC4B9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D45C6

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

Preview Lab → · Contrast checker → · Palette generator →

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