#7028A6#7028A6

#7028A6 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 45.0% C 0.190 H 306.0°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7028A6
RGBrgb(112, 40, 166)
HSLhsl(274, 61%, 40%)
HSVhsv(274, 76%, 65%)
CMYKcmyk(32.5%, 75.9%, 0%, 34.9%)
CIE-LABlab(33.38, 53.21, -54.17)
CIE-LCHlch(33.38, 75.93, 314.49°)
OKLaboklab(44.97% 0.1118 -0.1541)
OKLCHoklch(44.97% 0.19 306)
XYZxyz(14.3223, 7.7156, 36.8037)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7028A6 #5EA628
analogous
#3128A6 #7028A6 #A6289D
triadic
#7028A6 #A67028 #28A670
tetradic
#7028A6 #A63128 #5EA628 #289DA6
square
#7028A6 #A63128 #5EA628 #289DA6
split-complementary
#7028A6 #9DA628 #28A631
monochromatic
#2D1043 #4F1C75 #7028A6 #903BD0 #AC6DDC

Accessibility & contrast

On white

8.26
#7028A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7028A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7028A6
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7028A6#FFFFFF#000000##FFFFFF
##7028A61.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#664765
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7028a6;
/* rgb */ color: rgb(112, 40, 166);
/* oklch */ color: oklch(45.0% 0.190 306.0);
Tailwind
colors: {
  custom: {
    50: '#9e6ac1',
    500: '#7028a6',
    950: '#000000',
  },
}
SCSS
$custom: #7028a6;
$custom-light: #9e6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#7028a6",
  "rgb": {
    "r": 112,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 274.286,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44966,
    "c": 0.19039,
    "h": 306
  },
  "luminance": 0.07716
}

Semantic roles & 50–950 ramp

primary
#7028A6
secondary
#8EC267
accent
#E44488
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7028A6

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

Preview Lab → · Contrast checker → · Palette generator →

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