#7D45C8#7D45C8

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

Color values

HEX#7D45C8
RGBrgb(125, 69, 200)
HSLhsl(266, 54%, 53%)
HSVhsv(266, 66%, 78%)
CMYKcmyk(37.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(42.44, 50.42, -59.48)
CIE-LCHlch(42.44, 77.97, 310.29°)
OKLaboklab(52.58% 0.0948 -0.1694)
OKLCHoklch(52.58% 0.194 299.2)
XYZxyz(21.0083, 12.7861, 55.9935)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45C8 #90C845
analogous
#454EC8 #7D45C8 #BF45C8
triadic
#7D45C8 #C87D45 #45C87D
tetradic
#7D45C8 #C8454E #90C845 #45C8BF
square
#7D45C8 #C8454E #90C845 #45C8BF
split-complementary
#7D45C8 #C8BF45 #4EC845
monochromatic
#442171 #602FA0 #7D45C8 #9E74D6 #BFA3E4

Accessibility & contrast

On white

5.90
#7D45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7D45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45C8
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45C8#FFFFFF#000000##FFFFFF
##7D45C81.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#6C6380
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d45c8;
/* rgb */ color: rgb(125, 69, 200);
/* oklch */ color: oklch(52.6% 0.194 299.2);
Tailwind
colors: {
  custom: {
    50: '#a87cda',
    500: '#7d45c8',
    950: '#000000',
  },
}
SCSS
$custom: #7d45c8;
$custom-light: #a87cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45c8",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 265.649,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52575,
    "c": 0.19411,
    "h": 299.2
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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