#7D45C2#7D45C2

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

Color values

HEX#7D45C2
RGBrgb(125, 69, 194)
HSLhsl(267, 51%, 52%)
HSVhsv(267, 64%, 76%)
CMYKcmyk(35.6%, 64.4%, 0%, 23.9%)
CIE-LABlab(42.02, 48.90, -56.67)
CIE-LCHlch(42.02, 74.86, 310.79°)
OKLaboklab(52.14% 0.0954 -0.1611)
OKLCHoklch(52.14% 0.187 300.6)
XYZxyz(20.3208, 12.5111, 52.3728)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45C2 #8AC245
analogous
#454CC2 #7D45C2 #BC45C2
triadic
#7D45C2 #C27D45 #45C27D
tetradic
#7D45C2 #C2454C #8AC245 #45C2BC
square
#7D45C2 #C2454C #8AC245 #45C2BC
split-complementary
#7D45C2 #C2BC45 #4CC245
monochromatic
#43236A #603298 #7D45C2 #9D73D1 #BDA1E0

Accessibility & contrast

On white

6.00
#7D45C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7D45C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45C2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45C2#FFFFFF#000000##FFFFFF
##7D45C21.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0C62BF
Tritanopia (blue-blind)
#6E617D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d45c2;
/* rgb */ color: rgb(125, 69, 194);
/* oklch */ color: oklch(52.1% 0.187 300.6);
Tailwind
colors: {
  custom: {
    50: '#a77cd5',
    500: '#7d45c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d45c2;
$custom-light: #a77cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45c2",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 266.88,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52137,
    "c": 0.18727,
    "h": 300.6
  },
  "luminance": 0.12511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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