#7028AC#7028AC

#7028AC is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.4% C 0.196 H 304.2°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7028AC
RGBrgb(112, 40, 172)
HSLhsl(273, 62%, 42%)
HSVhsv(273, 77%, 67%)
CMYKcmyk(34.9%, 76.7%, 0%, 32.5%)
CIE-LABlab(33.86, 54.60, -57.00)
CIE-LCHlch(33.86, 78.93, 313.77°)
OKLaboklab(45.45% 0.1105 -0.1624)
OKLCHoklch(45.45% 0.196 304.2)
XYZxyz(14.8856, 7.9409, 39.7703)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7028AC #64AC28
analogous
#2E28AC #7028AC #AC28A6
triadic
#7028AC #AC7028 #28AC70
tetradic
#7028AC #AC2E28 #64AC28 #28A6AC
square
#7028AC #AC2E28 #64AC28 #28A6AC
split-complementary
#7028AC #A6AC28 #28AC2E
monochromatic
#2F1149 #501C7A #7028AC #8F3FD2 #AC71DE

Accessibility & contrast

On white

8.11
#7028AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7028AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7028AC
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7028AC#FFFFFF#000000##FFFFFF
##7028AC1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#644A69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7028ac;
/* rgb */ color: rgb(112, 40, 172);
/* oklch */ color: oklch(45.4% 0.196 304.2);
Tailwind
colors: {
  custom: {
    50: '#9f6ac6',
    500: '#7028ac',
    950: '#000000',
  },
}
SCSS
$custom: #7028ac;
$custom-light: #9f6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#7028ac",
  "rgb": {
    "r": 112,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 272.727,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45449,
    "c": 0.19641,
    "h": 304.2
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#7028AC
secondary
#94C56B
accent
#E5428C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7028AC

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

Preview Lab → · Contrast checker → · Palette generator →

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