#7628C4#7628C4

#7628C4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.221 H 300.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7628C4
RGBrgb(118, 40, 196)
HSLhsl(270, 66%, 46%)
HSVhsv(270, 80%, 77%)
CMYKcmyk(39.8%, 79.6%, 0%, 23.1%)
CIE-LABlab(36.66, 61.17, -66.60)
CIE-LCHlch(36.66, 90.43, 312.57°)
OKLaboklab(48.19% 0.1127 -0.1904)
OKLCHoklch(48.19% 0.221 300.6)
XYZxyz(18.1913, 9.3545, 53.0610)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7628C4 #76C428
analogous
#2828C4 #7628C4 #C428C4
triadic
#7628C4 #C47628 #28C476
tetradic
#7628C4 #C42828 #76C428 #28C4C4
square
#7628C4 #C42828 #76C428 #28C4C4
split-complementary
#7628C4 #C4C428 #28C428
monochromatic
#39135E #571E91 #7628C4 #954EDB #B381E5

Accessibility & contrast

On white

7.31
#7628C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7628C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7628C4
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7628C4#FFFFFF#000000##FFFFFF
##7628C41.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0055C1
Tritanopia (blue-blind)
#645377
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7628c4;
/* rgb */ color: rgb(118, 40, 196);
/* oklch */ color: oklch(48.2% 0.221 300.6);
Tailwind
colors: {
  custom: {
    50: '#a56cd7',
    500: '#7628c4',
    950: '#000000',
  },
}
SCSS
$custom: #7628c4;
$custom-light: #a56cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7628c4",
  "rgb": {
    "r": 118,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 270,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48194,
    "c": 0.22125,
    "h": 300.6
  },
  "luminance": 0.09355
}

Semantic roles & 50–950 ramp

primary
#7628C4
secondary
#A4CE7A
accent
#E93F94
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7628C4

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

Preview Lab → · Contrast checker → · Palette generator →

#7628C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva