#7C45CD#7C45CD

#7C45CD is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.200 H 297.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7C45CD
RGBrgb(124, 69, 205)
HSLhsl(264, 58%, 54%)
HSVhsv(264, 66%, 80%)
CMYKcmyk(39.5%, 66.3%, 0%, 19.6%)
CIE-LABlab(42.69, 51.49, -61.98)
CIE-LCHlch(42.69, 80.57, 309.72°)
OKLaboklab(52.84% 0.0929 -0.1768)
OKLCHoklch(52.84% 0.2 297.7)
XYZxyz(21.4569, 12.9488, 59.1147)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C45CD #96CD45
analogous
#4552CD #7C45CD #C045CD
triadic
#7C45CD #CD7C45 #45CD7C
tetradic
#7C45CD #CD4552 #96CD45 #45CDC0
square
#7C45CD #CD4552 #96CD45 #45CDC0
split-complementary
#7C45CD #CDC045 #52CD45
monochromatic
#432077 #5F2DA8 #7C45CD #9E75DA #C0A5E7

Accessibility & contrast

On white

5.85
#7C45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7C45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C45CD
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C45CD#FFFFFF#000000##FFFFFF
##7C45CD1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#686583
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7c45cd;
/* rgb */ color: rgb(124, 69, 205);
/* oklch */ color: oklch(52.8% 0.200 297.7);
Tailwind
colors: {
  custom: {
    50: '#a87cdd',
    500: '#7c45cd',
    950: '#000000',
  },
}
SCSS
$custom: #7c45cd;
$custom-light: #a87cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c45cd",
  "rgb": {
    "r": 124,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 264.265,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5284,
    "c": 0.19967,
    "h": 297.7
  },
  "luminance": 0.12949
}

Semantic roles & 50–950 ramp

primary
#7C45CD
secondary
#BCD49A
accent
#E147A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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