#7D45C1#7D45C1

#7D45C1 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.186 H 300.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7D45C1
RGBrgb(125, 69, 193)
HSLhsl(267, 50%, 51%)
HSVhsv(267, 64%, 76%)
CMYKcmyk(35.2%, 64.2%, 0%, 24.3%)
CIE-LABlab(41.95, 48.65, -56.20)
CIE-LCHlch(41.95, 74.34, 310.88°)
OKLaboklab(52.07% 0.0955 -0.1598)
OKLCHoklch(52.07% 0.186 300.9)
XYZxyz(20.2089, 12.4664, 51.7833)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45C1 #89C145
analogous
#454BC1 #7D45C1 #BB45C1
triadic
#7D45C1 #C17D45 #45C17D
tetradic
#7D45C1 #C1454B #89C145 #45C1BB
square
#7D45C1 #C1454B #89C145 #45C1BB
split-complementary
#7D45C1 #C1BB45 #4BC145
monochromatic
#422369 #603297 #7D45C1 #9D73D0 #BDA1E0

Accessibility & contrast

On white

6.01
#7D45C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7D45C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45C1
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45C1#FFFFFF#000000##FFFFFF
##7D45C11.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#1062BE
Tritanopia (blue-blind)
#6F607D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d45c1;
/* rgb */ color: rgb(125, 69, 193);
/* oklch */ color: oklch(52.1% 0.186 300.9);
Tailwind
colors: {
  custom: {
    50: '#a77cd4',
    500: '#7d45c1',
    950: '#000000',
  },
}
SCSS
$custom: #7d45c1;
$custom-light: #a77cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45c1",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 193
  },
  "hsl": {
    "h": 267.097,
    "s": 50,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52065,
    "c": 0.18611,
    "h": 300.9
  },
  "luminance": 0.12466
}

Semantic roles & 50–950 ramp

primary
#7D45C1
secondary
#B4CC96
accent
#DA4E9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7D45C1

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

Preview Lab → · Contrast checker → · Palette generator →

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