#7152D8#7152D8

#7152D8 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.196 H 288.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7152D8
RGBrgb(113, 82, 216)
HSLhsl(254, 63%, 58%)
HSVhsv(254, 62%, 85%)
CMYKcmyk(47.7%, 62%, 0%, 15.3%)
CIE-LABlab(44.94, 45.32, -64.68)
CIE-LCHlch(44.94, 78.97, 305.02°)
OKLaboklab(54.46% 0.0632 -0.1851)
OKLCHoklch(54.46% 0.196 288.8)
XYZxyz(22.2185, 14.5022, 66.5809)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152D8 #B9D852
analogous
#5276D8 #7152D8 #B452D8
triadic
#7152D8 #D87152 #52D871
tetradic
#7152D8 #D85276 #B9D852 #52D8B4
square
#7152D8 #D85276 #B9D852 #52D8B4
split-complementary
#7152D8 #D8B452 #76D852
monochromatic
#3A208F #4E2CC1 #7152D8 #9A84E3 #C3B6EF

Accessibility & contrast

On white

5.38
#7152D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7152D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152D8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152D8#FFFFFF#000000##FFFFFF
##7152D81.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#0067D5
Tritanopia (blue-blind)
#4F728D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7152d8;
/* rgb */ color: rgb(113, 82, 216);
/* oklch */ color: oklch(54.5% 0.196 288.8);
Tailwind
colors: {
  custom: {
    50: '#a184e5',
    500: '#7152d8',
    950: '#000000',
  },
}
SCSS
$custom: #7152d8;
$custom-light: #a184e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7152d8",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 253.881,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54463,
    "c": 0.19558,
    "h": 288.8
  },
  "luminance": 0.14503
}

Semantic roles & 50–950 ramp

primary
#7152D8
secondary
#D1DDA8
accent
#E642C0
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7152D8

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

Preview Lab → · Contrast checker → · Palette generator →

#7152D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva