#7628C5#7628C5

#7628C5 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.3% C 0.222 H 300.4°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7628C5
RGBrgb(118, 40, 197)
HSLhsl(270, 66%, 46%)
HSVhsv(270, 80%, 77%)
CMYKcmyk(40.1%, 79.7%, 0%, 22.7%)
CIE-LABlab(36.74, 61.40, -67.04)
CIE-LCHlch(36.74, 90.91, 312.49°)
OKLaboklab(48.28% 0.1124 -0.1917)
OKLCHoklch(48.28% 0.222 300.4)
XYZxyz(18.3055, 9.4002, 53.6625)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7628C5 #77C528
analogous
#2828C5 #7628C5 #C528C5
triadic
#7628C5 #C57628 #28C576
tetradic
#7628C5 #C52828 #77C528 #28C5C5
square
#7628C5 #C52828 #77C528 #28C5C5
split-complementary
#7628C5 #C5C528 #28C528
monochromatic
#39135F #581E92 #7628C5 #954FDB #B382E6

Accessibility & contrast

On white

7.29
#7628C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7628C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7628C5
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7628C5#FFFFFF#000000##FFFFFF
##7628C51.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#635477
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7628c5;
/* rgb */ color: rgb(118, 40, 197);
/* oklch */ color: oklch(48.3% 0.222 300.4);
Tailwind
colors: {
  custom: {
    50: '#a56cd8',
    500: '#7628c5',
    950: '#000000',
  },
}
SCSS
$custom: #7628c5;
$custom-light: #a56cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7628c5",
  "rgb": {
    "r": 118,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 269.809,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4828,
    "c": 0.22223,
    "h": 300.4
  },
  "luminance": 0.094
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7628C5

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

Preview Lab → · Contrast checker → · Palette generator →

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