#7028C5#7028C5

#7028C5 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.6% C 0.221 H 297.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7028C5
RGBrgb(112, 40, 197)
HSLhsl(268, 66%, 46%)
HSVhsv(268, 80%, 77%)
CMYKcmyk(43.1%, 79.7%, 0%, 22.7%)
CIE-LABlab(35.97, 60.52, -68.34)
CIE-LCHlch(35.97, 91.29, 311.53°)
OKLaboklab(47.58% 0.1036 -0.1957)
OKLCHoklch(47.58% 0.221 297.9)
XYZxyz(17.5163, 8.9932, 53.6255)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7028C5 #7DC528
analogous
#282EC5 #7028C5 #BF28C5
triadic
#7028C5 #C57028 #28C570
tetradic
#7028C5 #C5282E #7DC528 #28C5BF
square
#7028C5 #C5282E #7DC528 #28C5BF
split-complementary
#7028C5 #C5BF28 #2EC528
monochromatic
#36135F #531E92 #7028C5 #8F4FDB #B082E6

Accessibility & contrast

On white

7.50
#7028C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7028C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7028C5
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7028C5#FFFFFF#000000##FFFFFF
##7028C51.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C9
Deuteranopia (green-blind)
#0053C2
Tritanopia (blue-blind)
#5A5477
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7028c5;
/* rgb */ color: rgb(112, 40, 197);
/* oklch */ color: oklch(47.6% 0.221 297.9);
Tailwind
colors: {
  custom: {
    50: '#a16bd8',
    500: '#7028c5',
    950: '#000000',
  },
}
SCSS
$custom: #7028c5;
$custom-light: #a16bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7028c5",
  "rgb": {
    "r": 112,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 267.516,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47575,
    "c": 0.22144,
    "h": 297.9
  },
  "luminance": 0.08994
}

Semantic roles & 50–950 ramp

primary
#7028C5
secondary
#A8CE7A
accent
#E93F9B
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7028C5

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

Preview Lab → · Contrast checker → · Palette generator →

#7028C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva