#7C45D8#7C45D8

#7C45D8 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.7% C 0.212 H 295.5°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7C45D8
RGBrgb(124, 69, 216)
HSLhsl(262, 65%, 56%)
HSVhsv(262, 68%, 85%)
CMYKcmyk(42.6%, 68.1%, 0%, 15.3%)
CIE-LABlab(43.51, 54.33, -66.97)
CIE-LCHlch(43.51, 86.23, 309.05°)
OKLaboklab(53.69% 0.0913 -0.1914)
OKLCHoklch(53.69% 0.212 295.5)
XYZxyz(22.8317, 13.4987, 66.3550)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C45D8 #A1D845
analogous
#4557D8 #7C45D8 #C545D8
triadic
#7C45D8 #D87C45 #45D87C
tetradic
#7C45D8 #D84557 #A1D845 #45D8C5
square
#7C45D8 #D84557 #A1D845 #45D8C5
split-complementary
#7C45D8 #D8C545 #57D845
monochromatic
#441C86 #5D27B9 #7C45D8 #A078E3 #C3AAED

Accessibility & contrast

On white

5.68
#7C45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#7C45D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C45D8
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C45D8#FFFFFF#000000##FFFFFF
##7C45D81.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#0065D5
Tritanopia (blue-blind)
#636989
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7c45d8;
/* rgb */ color: rgb(124, 69, 216);
/* oklch */ color: oklch(53.7% 0.212 295.5);
Tailwind
colors: {
  custom: {
    50: '#a97de5',
    500: '#7c45d8',
    950: '#000000',
  },
}
SCSS
$custom: #7c45d8;
$custom-light: #a97de5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c45d8",
  "rgb": {
    "r": 124,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 262.449,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53685,
    "c": 0.21211,
    "h": 295.5
  },
  "luminance": 0.13499
}

Semantic roles & 50–950 ramp

primary
#7C45D8
secondary
#C4DB9E
accent
#E840A9
background
#FAF7FE
surface
#F5EEFC
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7C45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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