#7628A5#7628A5

#7628A5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.191 H 309.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7628A5
RGBrgb(118, 40, 165)
HSLhsl(277, 61%, 40%)
HSVhsv(277, 76%, 65%)
CMYKcmyk(28.5%, 75.8%, 0%, 35.3%)
CIE-LABlab(34.16, 54.11, -52.27)
CIE-LCHlch(34.16, 75.23, 315.99°)
OKLaboklab(45.67% 0.1204 -0.1483)
OKLCHoklch(45.67% 0.191 309.1)
XYZxyz(15.0202, 8.0860, 36.3595)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7628A5 #57A528
analogous
#3728A5 #7628A5 #A52896
triadic
#7628A5 #A57628 #28A576
tetradic
#7628A5 #A53728 #57A528 #2896A5
square
#7628A5 #A53728 #57A528 #2896A5
split-complementary
#7628A5 #96A528 #28A537
monochromatic
#301042 #531C74 #7628A5 #983BCF #B26CDB

Accessibility & contrast

On white

8.02
#7628A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7628A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7628A5
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7628A5#FFFFFF#000000##FFFFFF
##7628A51.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#6F4665
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7628a5;
/* rgb */ color: rgb(118, 40, 165);
/* oklch */ color: oklch(45.7% 0.191 309.1);
Tailwind
colors: {
  custom: {
    50: '#a26ac0',
    500: '#7628a5',
    950: '#000000',
  },
}
SCSS
$custom: #7628a5;
$custom-light: #a26ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7628a5",
  "rgb": {
    "r": 118,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 277.44,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45669,
    "c": 0.19098,
    "h": 309.1
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#7628A5
secondary
#89C267
accent
#E44480
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7628A5

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

Preview Lab → · Contrast checker → · Palette generator →

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