#6728FE#6728FE

#6728FE is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 52.1% C 0.279 H 284.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6728FE
RGBrgb(103, 40, 254)
HSLhsl(258, 99%, 58%)
HSVhsv(258, 84%, 100%)
CMYKcmyk(59.4%, 84.3%, 0%, 0.4%)
CIE-LABlab(40.50, 73.53, -93.49)
CIE-LCHlch(40.50, 118.94, 308.18°)
OKLaboklab(52.11% 0.0704 -0.2695)
OKLCHoklch(52.11% 0.279 284.6)
XYZxyz(24.2362, 11.5553, 94.7000)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6728FE #BFFE28
analogous
#2854FE #6728FE #D228FE
triadic
#6728FE #FE6728 #28FE67
tetradic
#6728FE #FE2854 #BFFE28 #28FED2
square
#6728FE #FE2854 #BFFE28 #28FED2
split-complementary
#6728FE #FED228 #54FE28
monochromatic
#3301AB #4501E8 #6728FE #9265FE #BDA2FF

Accessibility & contrast

On white

6.34
#6728FE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6728FE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6728FE
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6728FE#FFFFFF#000000##FFFFFF
##6728FE1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065FF
Deuteranopia (green-blind)
#0059FA
Tritanopia (blue-blind)
#006E99
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6728fe;
/* rgb */ color: rgb(103, 40, 254);
/* oklch */ color: oklch(52.1% 0.279 284.6);
Tailwind
colors: {
  custom: {
    50: '#a46eff',
    500: '#6728fe',
    950: '#000000',
  },
}
SCSS
$custom: #6728fe;
$custom-light: #a46eff;
$custom-dark: #000000;
JSON
{
  "hex": "#6728fe",
  "rgb": {
    "r": 103,
    "g": 40,
    "b": 254
  },
  "hsl": {
    "h": 257.664,
    "s": 99.074,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52111,
    "c": 0.27851,
    "h": 284.6
  },
  "luminance": 0.11557
}

Semantic roles & 50–950 ramp

primary
#6728FE
secondary
#D3EC96
accent
#FF29C0
background
#FBF7FF
surface
#F6EDFF
border
#D0C8D7
text
#110818
muted
#807B86

Preview Lab

Preview with #6728FE

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

Preview Lab → · Contrast checker → · Palette generator →

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