#7D45CA#7D45CA

#7D45CA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.7% C 0.196 H 298.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7D45CA
RGBrgb(125, 69, 202)
HSLhsl(265, 56%, 53%)
HSVhsv(265, 66%, 79%)
CMYKcmyk(38.1%, 65.8%, 0%, 20.8%)
CIE-LABlab(42.58, 50.93, -60.40)
CIE-LCHlch(42.58, 79.01, 310.13°)
OKLaboklab(52.72% 0.0946 -0.1721)
OKLCHoklch(52.72% 0.196 298.8)
XYZxyz(21.2436, 12.8802, 57.2326)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45CA #92CA45
analogous
#454FCA #7D45CA #BF45CA
triadic
#7D45CA #CA7D45 #45CA7D
tetradic
#7D45CA #CA454F #92CA45 #45CABF
square
#7D45CA #CA454F #92CA45 #45CABF
split-complementary
#7D45CA #CABF45 #4FCA45
monochromatic
#442174 #602FA3 #7D45CA #9E75D8 #C0A4E5

Accessibility & contrast

On white

5.87
#7D45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7D45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45CA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45CA#FFFFFF#000000##FFFFFF
##7D45CA1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#6B6482
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d45ca;
/* rgb */ color: rgb(125, 69, 202);
/* oklch */ color: oklch(52.7% 0.196 298.8);
Tailwind
colors: {
  custom: {
    50: '#a87cdb',
    500: '#7d45ca',
    950: '#000000',
  },
}
SCSS
$custom: #7d45ca;
$custom-light: #a87cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45ca",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 265.263,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52723,
    "c": 0.19639,
    "h": 298.8
  },
  "luminance": 0.1288
}

Semantic roles & 50–950 ramp

primary
#7D45CA
secondary
#BAD299
accent
#DF49A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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