#6728A2#6728A2

#6728A2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.184 H 302.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#6728A2
RGBrgb(103, 40, 162)
HSLhsl(271, 60%, 40%)
HSVhsv(271, 75%, 64%)
CMYKcmyk(36.4%, 75.3%, 0%, 36.5%)
CIE-LABlab(31.83, 50.61, -54.34)
CIE-LCHlch(31.83, 74.26, 312.96°)
OKLaboklab(43.51% 0.0998 -0.1549)
OKLCHoklch(43.51% 0.184 302.8)
XYZxyz(12.8724, 7.0098, 34.8503)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6728A2 #63A228
analogous
#2A28A2 #6728A2 #A228A0
triadic
#6728A2 #A26728 #28A267
tetradic
#6728A2 #A22A28 #63A228 #28A0A2
square
#6728A2 #A22A28 #63A228 #28A0A2
split-complementary
#6728A2 #A0A228 #28A22A
monochromatic
#291040 #481C71 #6728A2 #8639CE #A46ADA

Accessibility & contrast

On white

8.74
#6728A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6728A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6728A2
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6728A2#FFFFFF#000000##FFFFFF
##6728A21.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#5B4763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6728a2;
/* rgb */ color: rgb(103, 40, 162);
/* oklch */ color: oklch(43.5% 0.184 302.8);
Tailwind
colors: {
  custom: {
    50: '#9868be',
    500: '#6728a2',
    950: '#000000',
  },
}
SCSS
$custom: #6728a2;
$custom-light: #9868be;
$custom-dark: #000000;
JSON
{
  "hex": "#6728a2",
  "rgb": {
    "r": 103,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 270.984,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43507,
    "c": 0.18428,
    "h": 302.8
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#6728A2
secondary
#91C165
accent
#E44491
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6728A2

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

Preview Lab → · Contrast checker → · Palette generator →

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