#7128BA#7128BA

#7128BA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.211 H 300.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7128BA
RGBrgb(113, 40, 186)
HSLhsl(270, 65%, 44%)
HSVhsv(270, 78%, 73%)
CMYKcmyk(39.2%, 78.5%, 0%, 27.1%)
CIE-LABlab(35.15, 58.05, -63.21)
CIE-LCHlch(35.15, 85.83, 312.56°)
OKLaboklab(46.74% 0.1083 -0.1806)
OKLCHoklch(46.74% 0.211 300.9)
XYZxyz(16.4296, 8.5733, 47.2341)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7128BA #71BA28
analogous
#2828BA #7128BA #BA28BA
triadic
#7128BA #BA7128 #28BA71
tetradic
#7128BA #BA2828 #71BA28 #28BABA
square
#7128BA #BA2828 #71BA28 #28BABA
split-complementary
#7128BA #BABA28 #28BA28
monochromatic
#341255 #521D88 #7128BA #9048D8 #AE7AE2

Accessibility & contrast

On white

7.74
#7128BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7128BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7128BA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7128BA#FFFFFF#000000##FFFFFF
##7128BA1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#605071
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7128ba;
/* rgb */ color: rgb(113, 40, 186);
/* oklch */ color: oklch(46.7% 0.211 300.9);
Tailwind
colors: {
  custom: {
    50: '#a16bd0',
    500: '#7128ba',
    950: '#000000',
  },
}
SCSS
$custom: #7128ba;
$custom-light: #a16bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7128ba",
  "rgb": {
    "r": 113,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 270,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46739,
    "c": 0.2106,
    "h": 300.9
  },
  "luminance": 0.08573
}

Semantic roles & 50–950 ramp

primary
#7128BA
secondary
#9FCA73
accent
#E84094
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7128BA

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

Preview Lab → · Contrast checker → · Palette generator →

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