#7D45C3#7D45C3

#7D45C3 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.188 H 300.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7D45C3
RGBrgb(125, 69, 195)
HSLhsl(267, 51%, 52%)
HSVhsv(267, 65%, 76%)
CMYKcmyk(35.9%, 64.6%, 0%, 23.5%)
CIE-LABlab(42.09, 49.15, -57.14)
CIE-LCHlch(42.09, 75.38, 310.70°)
OKLaboklab(52.21% 0.0953 -0.1625)
OKLCHoklch(52.21% 0.188 300.4)
XYZxyz(20.4335, 12.5562, 52.9662)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45C3 #8BC345
analogous
#454CC3 #7D45C3 #BC45C3
triadic
#7D45C3 #C37D45 #45C37D
tetradic
#7D45C3 #C3454C #8BC345 #45C3BC
square
#7D45C3 #C3454C #8BC345 #45C3BC
split-complementary
#7D45C3 #C3BC45 #4CC345
monochromatic
#43236B #603199 #7D45C3 #9D73D2 #BEA2E1

Accessibility & contrast

On white

5.98
#7D45C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7D45C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45C3
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45C3#FFFFFF#000000##FFFFFF
##7D45C31.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#0762C0
Tritanopia (blue-blind)
#6E617E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d45c3;
/* rgb */ color: rgb(125, 69, 195);
/* oklch */ color: oklch(52.2% 0.188 300.4);
Tailwind
colors: {
  custom: {
    50: '#a87cd6',
    500: '#7d45c3',
    950: '#000000',
  },
}
SCSS
$custom: #7d45c3;
$custom-light: #a87cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45c3",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 195
  },
  "hsl": {
    "h": 266.667,
    "s": 51.22,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5221,
    "c": 0.18841,
    "h": 300.4
  },
  "luminance": 0.12556
}

Semantic roles & 50–950 ramp

primary
#7D45C3
secondary
#B5CE96
accent
#DB4D9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7D45C3

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

Preview Lab → · Contrast checker → · Palette generator →

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