#7A45CC#7A45CC

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

Color values

HEX#7A45CC
RGBrgb(122, 69, 204)
HSLhsl(264, 57%, 54%)
HSVhsv(264, 66%, 80%)
CMYKcmyk(40.2%, 66.2%, 0%, 20%)
CIE-LABlab(42.39, 50.84, -61.89)
CIE-LCHlch(42.39, 80.09, 309.40°)
OKLaboklab(52.55% 0.0902 -0.1766)
OKLCHoklch(52.55% 0.198 297.1)
XYZxyz(21.0504, 12.7531, 58.4676)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45CC #97CC45
analogous
#4553CC #7A45CC #BE45CC
triadic
#7A45CC #CC7A45 #45CC7A
tetradic
#7A45CC #CC4553 #97CC45 #45CCBE
square
#7A45CC #CC4553 #97CC45 #45CCBE
split-complementary
#7A45CC #CCBE45 #53CC45
monochromatic
#422076 #5D2EA6 #7A45CC #9C75D9 #BFA5E6

Accessibility & contrast

On white

5.91
#7A45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7A45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A45CC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A45CC#FFFFFF#000000##FFFFFF
##7A45CC1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#666583
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a45cc;
/* rgb */ color: rgb(122, 69, 204);
/* oklch */ color: oklch(52.6% 0.198 297.1);
Tailwind
colors: {
  custom: {
    50: '#a67cdc',
    500: '#7a45cc',
    950: '#000000',
  },
}
SCSS
$custom: #7a45cc;
$custom-light: #a67cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45cc",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 263.556,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52553,
    "c": 0.1983,
    "h": 297.1
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#7A45CC
secondary
#BDD399
accent
#E048A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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