#7628A2#7628A2

#7628A2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.188 H 310.0°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7628A2
RGBrgb(118, 40, 162)
HSLhsl(278, 60%, 40%)
HSVhsv(278, 75%, 64%)
CMYKcmyk(27.2%, 75.3%, 0%, 36.5%)
CIE-LABlab(33.94, 53.45, -50.82)
CIE-LCHlch(33.94, 73.75, 316.44°)
OKLaboklab(45.44% 0.1209 -0.144)
OKLCHoklch(45.44% 0.188 310)
XYZxyz(14.7503, 7.9781, 34.9383)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7628A2 #54A228
analogous
#3928A2 #7628A2 #A22891
triadic
#7628A2 #A27628 #28A276
tetradic
#7628A2 #A23928 #54A228 #2891A2
square
#7628A2 #A23928 #54A228 #2891A2
split-complementary
#7628A2 #91A228 #28A239
monochromatic
#2E1040 #521C71 #7628A2 #9839CE #B26ADA

Accessibility & contrast

On white

8.09
#7628A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7628A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7628A2
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7628A2#FFFFFF#000000##FFFFFF
##7628A21.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#08519F
Tritanopia (blue-blind)
#704563
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7628a2;
/* rgb */ color: rgb(118, 40, 162);
/* oklch */ color: oklch(45.4% 0.188 310.0);
Tailwind
colors: {
  custom: {
    50: '#a26abe',
    500: '#7628a2',
    950: '#000000',
  },
}
SCSS
$custom: #7628a2;
$custom-light: #a26abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7628a2",
  "rgb": {
    "r": 118,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 278.361,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45441,
    "c": 0.18806,
    "h": 310
  },
  "luminance": 0.07978
}

Semantic roles & 50–950 ramp

primary
#7628A2
secondary
#86C165
accent
#E4447E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7628A2

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

Preview Lab → · Contrast checker → · Palette generator →

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