#7628AB#7628AB

#7628AB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.1% C 0.197 H 307.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7628AB
RGBrgb(118, 40, 171)
HSLhsl(276, 62%, 41%)
HSVhsv(276, 77%, 67%)
CMYKcmyk(31%, 76.6%, 0%, 32.9%)
CIE-LABlab(34.62, 55.45, -55.13)
CIE-LCHlch(34.62, 78.19, 315.17°)
OKLaboklab(46.14% 0.1191 -0.1567)
OKLCHoklch(46.14% 0.197 307.2)
XYZxyz(15.5791, 8.3096, 39.3034)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7628AB #5DAB28
analogous
#3528AB #7628AB #AB289F
triadic
#7628AB #AB7628 #28AB76
tetradic
#7628AB #AB3528 #5DAB28 #289FAB
square
#7628AB #AB3528 #5DAB28 #289FAB
split-complementary
#7628AB #9FAB28 #28AB35
monochromatic
#321148 #541C79 #7628AB #963ED2 #B170DE

Accessibility & contrast

On white

7.89
#7628AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7628AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7628AB
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7628AB#FFFFFF#000000##FFFFFF
##7628AB1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#6D4868
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7628ab;
/* rgb */ color: rgb(118, 40, 171);
/* oklch */ color: oklch(46.1% 0.197 307.2);
Tailwind
colors: {
  custom: {
    50: '#a36bc5',
    500: '#7628ab',
    950: '#000000',
  },
}
SCSS
$custom: #7628ab;
$custom-light: #a36bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7628ab",
  "rgb": {
    "r": 118,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 275.725,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.19683,
    "h": 307.2
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#7628AB
secondary
#8FC46A
accent
#E54384
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7628AB

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

Preview Lab → · Contrast checker → · Palette generator →

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