#7128B3#7128B3

#7128B3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.2% C 0.204 H 302.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7128B3
RGBrgb(113, 40, 179)
HSLhsl(272, 63%, 43%)
HSVhsv(272, 78%, 70%)
CMYKcmyk(36.9%, 77.7%, 0%, 29.8%)
CIE-LABlab(34.57, 56.41, -60.02)
CIE-LCHlch(34.57, 82.37, 313.22°)
OKLaboklab(46.15% 0.1102 -0.1712)
OKLCHoklch(46.15% 0.204 302.8)
XYZxyz(15.7036, 8.2829, 43.4105)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7128B3 #6AB328
analogous
#2C28B3 #7128B3 #B328AF
triadic
#7128B3 #B37128 #28B371
tetradic
#7128B3 #B32C28 #6AB328 #28AFB3
square
#7128B3 #B32C28 #6AB328 #28AFB3
split-complementary
#7128B3 #AFB328 #28B32C
monochromatic
#32124F #511D81 #7128B3 #9043D5 #AD75E0

Accessibility & contrast

On white

7.90
#7128B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7128B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7128B3
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7128B3#FFFFFF#000000##FFFFFF
##7128B31.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#634D6D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7128b3;
/* rgb */ color: rgb(113, 40, 179);
/* oklch */ color: oklch(46.2% 0.204 302.8);
Tailwind
colors: {
  custom: {
    50: '#a06acb',
    500: '#7128b3',
    950: '#000000',
  },
}
SCSS
$custom: #7128b3;
$custom-light: #a06acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7128b3",
  "rgb": {
    "r": 113,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 271.511,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4615,
    "c": 0.20362,
    "h": 302.8
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#7128B3
secondary
#99C86F
accent
#E64190
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7128B3

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

Preview Lab → · Contrast checker → · Palette generator →

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