#7128C5#7128C5

#7128C5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.222 H 298.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7128C5
RGBrgb(113, 40, 197)
HSLhsl(268, 66%, 46%)
HSVhsv(268, 80%, 77%)
CMYKcmyk(42.6%, 79.7%, 0%, 22.7%)
CIE-LABlab(36.10, 60.67, -68.12)
CIE-LCHlch(36.10, 91.22, 311.69°)
OKLaboklab(47.69% 0.1051 -0.195)
OKLCHoklch(47.69% 0.222 298.3)
XYZxyz(17.6443, 9.0592, 53.6315)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7128C5 #7CC528
analogous
#282EC5 #7128C5 #C028C5
triadic
#7128C5 #C57128 #28C571
tetradic
#7128C5 #C5282E #7CC528 #28C5C0
square
#7128C5 #C5282E #7CC528 #28C5C0
split-complementary
#7128C5 #C5C028 #2EC528
monochromatic
#37135F #541E92 #7128C5 #904FDB #B082E6

Accessibility & contrast

On white

7.47
#7128C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7128C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7128C5
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7128C5#FFFFFF#000000##FFFFFF
##7128C51.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7128c5;
/* rgb */ color: rgb(113, 40, 197);
/* oklch */ color: oklch(47.7% 0.222 298.3);
Tailwind
colors: {
  custom: {
    50: '#a26bd8',
    500: '#7128c5',
    950: '#000000',
  },
}
SCSS
$custom: #7128c5;
$custom-light: #a26bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7128c5",
  "rgb": {
    "r": 113,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 267.898,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47691,
    "c": 0.22156,
    "h": 298.3
  },
  "luminance": 0.0906
}

Semantic roles & 50–950 ramp

primary
#7128C5
secondary
#A7CE7A
accent
#E93F9A
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7128C5

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

Preview Lab → · Contrast checker → · Palette generator →

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