#7128A4#7128A4

#7128A4 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.189 H 307.0°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7128A4
RGBrgb(113, 40, 164)
HSLhsl(275, 61%, 40%)
HSVhsv(275, 76%, 64%)
CMYKcmyk(31.1%, 75.6%, 0%, 35.7%)
CIE-LABlab(33.37, 52.94, -52.99)
CIE-LCHlch(33.37, 74.90, 314.97°)
OKLaboklab(44.94% 0.1136 -0.1506)
OKLCHoklch(44.94% 0.189 307)
XYZxyz(14.2682, 7.7088, 35.8510)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7128A4 #5BA428
analogous
#3328A4 #7128A4 #A42899
triadic
#7128A4 #A47128 #28A471
tetradic
#7128A4 #A43328 #5BA428 #2899A4
square
#7128A4 #A43328 #5BA428 #2899A4
split-complementary
#7128A4 #99A428 #28A433
monochromatic
#2D1042 #4F1C73 #7128A4 #923ACF #AD6BDB

Accessibility & contrast

On white

8.26
#7128A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7128A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7128A4
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7128A4#FFFFFF#000000##FFFFFF
##7128A41.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)
#004CA7
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#684664
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7128a4;
/* rgb */ color: rgb(113, 40, 164);
/* oklch */ color: oklch(44.9% 0.189 307.0);
Tailwind
colors: {
  custom: {
    50: '#9f6ac0',
    500: '#7128a4',
    950: '#000000',
  },
}
SCSS
$custom: #7128a4;
$custom-light: #9f6ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7128a4",
  "rgb": {
    "r": 113,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 275.323,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.44936,
    "c": 0.18863,
    "h": 307
  },
  "luminance": 0.07709
}

Semantic roles & 50–950 ramp

primary
#7128A4
secondary
#8CC166
accent
#E44486
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7128A4

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

Preview Lab → · Contrast checker → · Palette generator →

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