#7C45C8#7C45C8

#7C45C8 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.194 H 298.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7C45C8
RGBrgb(124, 69, 200)
HSLhsl(265, 54%, 53%)
HSVhsv(265, 66%, 78%)
CMYKcmyk(38%, 65.5%, 0%, 21.6%)
CIE-LABlab(42.32, 50.21, -59.67)
CIE-LCHlch(42.32, 77.98, 310.08°)
OKLaboklab(52.47% 0.0934 -0.17)
OKLCHoklch(52.47% 0.194 298.8)
XYZxyz(20.8630, 12.7112, 55.9867)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C45C8 #91C845
analogous
#454FC8 #7C45C8 #BE45C8
triadic
#7C45C8 #C87C45 #45C87C
tetradic
#7C45C8 #C8454F #91C845 #45C8BE
square
#7C45C8 #C8454F #91C845 #45C8BE
split-complementary
#7C45C8 #C8BE45 #4FC845
monochromatic
#432171 #5F2FA0 #7C45C8 #9D74D6 #BFA3E4

Accessibility & contrast

On white

5.93
#7C45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7C45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C45C8
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C45C8#FFFFFF#000000##FFFFFF
##7C45C81.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#6A6380
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c45c8;
/* rgb */ color: rgb(124, 69, 200);
/* oklch */ color: oklch(52.5% 0.194 298.8);
Tailwind
colors: {
  custom: {
    50: '#a77cda',
    500: '#7c45c8',
    950: '#000000',
  },
}
SCSS
$custom: #7c45c8;
$custom-light: #a77cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7c45c8",
  "rgb": {
    "r": 124,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 265.191,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52467,
    "c": 0.19396,
    "h": 298.8
  },
  "luminance": 0.12711
}

Semantic roles & 50–950 ramp

primary
#7C45C8
secondary
#B9D198
accent
#DE4AA0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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