#7C45E6#7C45E6

#7C45E6 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.228 H 293.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7C45E6
RGBrgb(124, 69, 230)
HSLhsl(260, 76%, 59%)
HSVhsv(260, 70%, 90%)
CMYKcmyk(46.1%, 70%, 0%, 9.8%)
CIE-LABlab(44.59, 57.97, -73.17)
CIE-LCHlch(44.59, 93.35, 308.39°)
OKLaboklab(54.8% 0.0889 -0.2097)
OKLCHoklch(54.8% 0.228 293)
XYZxyz(24.7193, 14.2537, 76.2964)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C45E6 #AFE645
analogous
#455EE6 #7C45E6 #CC45E6
triadic
#7C45E6 #E67C45 #45E67C
tetradic
#7C45E6 #E6455E #AFE645 #45E6CC
square
#7C45E6 #E6455E #AFE645 #45E6CC
split-complementary
#7C45E6 #E6CC45 #5EE645
monochromatic
#43159C #5A1CD2 #7C45E6 #A27BED #C8B1F5

Accessibility & contrast

On white

5.45
#7C45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7C45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C45E6
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C45E6#FFFFFF#000000##FFFFFF
##7C45E61.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEB
Deuteranopia (green-blind)
#0066E3
Tritanopia (blue-blind)
#5C6E91
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7c45e6;
/* rgb */ color: rgb(124, 69, 230);
/* oklch */ color: oklch(54.8% 0.228 293.0);
Tailwind
colors: {
  custom: {
    50: '#aa7def',
    500: '#7c45e6',
    950: '#000000',
  },
}
SCSS
$custom: #7c45e6;
$custom-light: #aa7def;
$custom-dark: #000000;
JSON
{
  "hex": "#7c45e6",
  "rgb": {
    "r": 124,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 260.497,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.548,
    "c": 0.22773,
    "h": 293
  },
  "luminance": 0.14255
}

Semantic roles & 50–950 ramp

primary
#7C45E6
secondary
#CDE3A4
accent
#F335B2
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7C45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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