#7128AF#7128AF

#7128AF is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.8% C 0.200 H 303.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7128AF
RGBrgb(113, 40, 175)
HSLhsl(272, 63%, 42%)
HSVhsv(272, 77%, 69%)
CMYKcmyk(35.4%, 77.1%, 0%, 31.4%)
CIE-LABlab(34.24, 55.47, -58.17)
CIE-LCHlch(34.24, 80.38, 313.64°)
OKLaboklab(45.82% 0.1112 -0.1658)
OKLCHoklch(45.82% 0.2 303.8)
XYZxyz(15.3049, 8.1235, 41.3108)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7128AF #66AF28
analogous
#2D28AF #7128AF #AF28AA
triadic
#7128AF #AF7128 #28AF71
tetradic
#7128AF #AF2D28 #66AF28 #28AAAF
square
#7128AF #AF2D28 #66AF28 #28AAAF
split-complementary
#7128AF #AAAF28 #28AF2D
monochromatic
#31114B #511D7D #7128AF #9041D4 #AD73DF

Accessibility & contrast

On white

8.00
#7128AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7128AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7128AF
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7128AF#FFFFFF#000000##FFFFFF
##7128AF1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#654B6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7128af;
/* rgb */ color: rgb(113, 40, 175);
/* oklch */ color: oklch(45.8% 0.200 303.8);
Tailwind
colors: {
  custom: {
    50: '#a06ac8',
    500: '#7128af',
    950: '#000000',
  },
}
SCSS
$custom: #7128af;
$custom-light: #a06ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#7128af",
  "rgb": {
    "r": 113,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 272.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4582,
    "c": 0.19963,
    "h": 303.8
  },
  "luminance": 0.08123
}

Semantic roles & 50–950 ramp

primary
#7128AF
secondary
#96C66D
accent
#E6428D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7128AF

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

Preview Lab → · Contrast checker → · Palette generator →

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