#7C45CA#7C45CA

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

Color values

HEX#7C45CA
RGBrgb(124, 69, 202)
HSLhsl(265, 56%, 53%)
HSVhsv(265, 66%, 79%)
CMYKcmyk(38.6%, 65.8%, 0%, 20.8%)
CIE-LABlab(42.47, 50.72, -60.59)
CIE-LCHlch(42.47, 79.02, 309.93°)
OKLaboklab(52.62% 0.0932 -0.1727)
OKLCHoklch(52.62% 0.196 298.4)
XYZxyz(21.0983, 12.8053, 57.2258)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C45CA #93CA45
analogous
#4550CA #7C45CA #BF45CA
triadic
#7C45CA #CA7C45 #45CA7C
tetradic
#7C45CA #CA4550 #93CA45 #45CABF
square
#7C45CA #CA4550 #93CA45 #45CABF
split-complementary
#7C45CA #CABF45 #50CA45
monochromatic
#432174 #5F2FA3 #7C45CA #9E75D8 #BFA4E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C45CA#FFFFFF#000000##FFFFFF
##7C45CA1.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)
#0064CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#6A6482
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c45ca;
/* rgb */ color: rgb(124, 69, 202);
/* oklch */ color: oklch(52.6% 0.196 298.4);
Tailwind
colors: {
  custom: {
    50: '#a87cdb',
    500: '#7c45ca',
    950: '#000000',
  },
}
SCSS
$custom: #7c45ca;
$custom-light: #a87cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c45ca",
  "rgb": {
    "r": 124,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 264.812,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52616,
    "c": 0.19626,
    "h": 298.4
  },
  "luminance": 0.12806
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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