#7128A8#7128A8

#7128A8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.193 H 305.8°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7128A8
RGBrgb(113, 40, 168)
HSLhsl(274, 62%, 41%)
HSVhsv(274, 76%, 66%)
CMYKcmyk(32.7%, 76.2%, 0%, 34.1%)
CIE-LABlab(33.68, 53.85, -54.89)
CIE-LCHlch(33.68, 76.90, 314.46°)
OKLaboklab(45.25% 0.1128 -0.1562)
OKLCHoklch(45.25% 0.193 305.8)
XYZxyz(14.6352, 7.8556, 37.7835)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7128A8 #5FA828
analogous
#3128A8 #7128A8 #A8289F
triadic
#7128A8 #A87128 #28A871
tetradic
#7128A8 #A83128 #5FA828 #289FA8
square
#7128A8 #A83128 #5FA828 #289FA8
split-complementary
#7128A8 #9FA828 #28A831
monochromatic
#2F1045 #501C77 #7128A8 #913DD1 #AD6EDC

Accessibility & contrast

On white

8.17
#7128A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7128A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7128A8
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7128A8#FFFFFF#000000##FFFFFF
##7128A81.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#674867
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7128a8;
/* rgb */ color: rgb(113, 40, 168);
/* oklch */ color: oklch(45.3% 0.193 305.8);
Tailwind
colors: {
  custom: {
    50: '#9f6ac3',
    500: '#7128a8',
    950: '#000000',
  },
}
SCSS
$custom: #7128a8;
$custom-light: #9f6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7128a8",
  "rgb": {
    "r": 113,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 274.219,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45253,
    "c": 0.19263,
    "h": 305.8
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#7128A8
secondary
#90C369
accent
#E54389
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7128A8

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

Preview Lab → · Contrast checker → · Palette generator →

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