#7128B2#7128B2

#7128B2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.1% C 0.203 H 303.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7128B2
RGBrgb(113, 40, 178)
HSLhsl(272, 63%, 43%)
HSVhsv(272, 78%, 70%)
CMYKcmyk(36.5%, 77.5%, 0%, 30.2%)
CIE-LABlab(34.48, 56.17, -59.56)
CIE-LCHlch(34.48, 81.87, 313.33°)
OKLaboklab(46.07% 0.1104 -0.1699)
OKLCHoklch(46.07% 0.203 303)
XYZxyz(15.6028, 8.2426, 42.8798)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7128B2 #69B228
analogous
#2C28B2 #7128B2 #B228AE
triadic
#7128B2 #B27128 #28B271
tetradic
#7128B2 #B22C28 #69B228 #28AEB2
square
#7128B2 #B22C28 #69B228 #28AEB2
split-complementary
#7128B2 #AEB228 #28B22C
monochromatic
#32124E #511D80 #7128B2 #9043D5 #AD75E0

Accessibility & contrast

On white

7.93
#7128B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7128B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7128B2
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7128B2#FFFFFF#000000##FFFFFF
##7128B21.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#644C6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7128b2;
/* rgb */ color: rgb(113, 40, 178);
/* oklch */ color: oklch(46.1% 0.203 303.0);
Tailwind
colors: {
  custom: {
    50: '#a06aca',
    500: '#7128b2',
    950: '#000000',
  },
}
SCSS
$custom: #7128b2;
$custom-light: #a06aca;
$custom-dark: #000000;
JSON
{
  "hex": "#7128b2",
  "rgb": {
    "r": 113,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 271.739,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46067,
    "c": 0.20262,
    "h": 303
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#7128B2
secondary
#98C76F
accent
#E6418F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7128B2

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

Preview Lab → · Contrast checker → · Palette generator →

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