#7028AB#7028AB

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

Color values

HEX#7028AB
RGBrgb(112, 40, 171)
HSLhsl(273, 62%, 41%)
HSVhsv(273, 77%, 67%)
CMYKcmyk(34.5%, 76.6%, 0%, 32.9%)
CIE-LABlab(33.78, 54.37, -56.53)
CIE-LCHlch(33.78, 78.43, 313.88°)
OKLaboklab(45.37% 0.1107 -0.161)
OKLCHoklch(45.37% 0.195 304.5)
XYZxyz(14.7899, 7.9027, 39.2664)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7028AB #63AB28
analogous
#2F28AB #7028AB #AB28A5
triadic
#7028AB #AB7028 #28AB70
tetradic
#7028AB #AB2F28 #63AB28 #28A5AB
square
#7028AB #AB2F28 #63AB28 #28A5AB
split-complementary
#7028AB #A5AB28 #28AB2F
monochromatic
#2F1148 #501C79 #7028AB #8F3ED2 #AC70DE

Accessibility & contrast

On white

8.14
#7028AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7028AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7028AB
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7028AB#FFFFFF#000000##FFFFFF
##7028AB1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#654968
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7028ab;
/* rgb */ color: rgb(112, 40, 171);
/* oklch */ color: oklch(45.4% 0.195 304.5);
Tailwind
colors: {
  custom: {
    50: '#9f6ac5',
    500: '#7028ab',
    950: '#000000',
  },
}
SCSS
$custom: #7028ab;
$custom-light: #9f6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7028ab",
  "rgb": {
    "r": 112,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 272.977,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45368,
    "c": 0.1954,
    "h": 304.5
  },
  "luminance": 0.07903
}

Semantic roles & 50–950 ramp

primary
#7028AB
secondary
#93C46A
accent
#E5438C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7028AB

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

Preview Lab → · Contrast checker → · Palette generator →

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