#7D45B7#7D45B7

#7D45B7 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.4% C 0.175 H 303.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7D45B7
RGBrgb(125, 69, 183)
HSLhsl(269, 45%, 49%)
HSVhsv(269, 62%, 72%)
CMYKcmyk(31.7%, 62.3%, 0%, 28.2%)
CIE-LABlab(41.27, 46.16, -51.44)
CIE-LCHlch(41.27, 69.12, 311.90°)
OKLaboklab(51.36% 0.0962 -0.1458)
OKLCHoklch(51.36% 0.175 303.4)
XYZxyz(19.1309, 12.0351, 46.1057)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45B7 #7FB745
analogous
#4546B7 #7D45B7 #B645B7
triadic
#7D45B7 #B77D45 #45B77D
tetradic
#7D45B7 #B74546 #7FB745 #45B7B6
square
#7D45B7 #B74546 #7FB745 #45B7B6
split-complementary
#7D45B7 #B7B645 #46B745
monochromatic
#40235E #5F348B #7D45B7 #9C70C9 #BB9DDA

Accessibility & contrast

On white

6.16
#7D45B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7D45B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45B7
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45B7#FFFFFF#000000##FFFFFF
##7D45B71.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#2561B4
Tritanopia (blue-blind)
#725D77
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d45b7;
/* rgb */ color: rgb(125, 69, 183);
/* oklch */ color: oklch(51.4% 0.175 303.4);
Tailwind
colors: {
  custom: {
    50: '#a77ccd',
    500: '#7d45b7',
    950: '#000000',
  },
}
SCSS
$custom: #7d45b7;
$custom-light: #a77ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45b7",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 269.474,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51361,
    "c": 0.17462,
    "h": 303.4
  },
  "luminance": 0.12035
}

Semantic roles & 50–950 ramp

primary
#7D45B7
secondary
#ACC692
accent
#D55395
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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