#7152D7#7152D7

#7152D7 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.194 H 289.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7152D7
RGBrgb(113, 82, 215)
HSLhsl(254, 62%, 58%)
HSVhsv(254, 62%, 84%)
CMYKcmyk(47.4%, 61.9%, 0%, 15.7%)
CIE-LABlab(44.87, 45.03, -64.23)
CIE-LCHlch(44.87, 78.44, 305.04°)
OKLaboklab(54.39% 0.0633 -0.1838)
OKLCHoklch(54.39% 0.194 289)
XYZxyz(22.0896, 14.4507, 65.9022)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152D7 #B8D752
analogous
#5275D7 #7152D7 #B352D7
triadic
#7152D7 #D77152 #52D771
tetradic
#7152D7 #D75275 #B8D752 #52D7B3
square
#7152D7 #D75275 #B8D752 #52D7B3
split-complementary
#7152D7 #D7B352 #75D752
monochromatic
#3A218E #4F2CC0 #7152D7 #9A84E2 #C3B5EE

Accessibility & contrast

On white

5.40
#7152D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7152D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152D7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152D7#FFFFFF#000000##FFFFFF
##7152D71.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#0067D4
Tritanopia (blue-blind)
#50718D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7152d7;
/* rgb */ color: rgb(113, 82, 215);
/* oklch */ color: oklch(54.4% 0.194 289.0);
Tailwind
colors: {
  custom: {
    50: '#a184e4',
    500: '#7152d7',
    950: '#000000',
  },
}
SCSS
$custom: #7152d7;
$custom-light: #a184e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7152d7",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 253.985,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54388,
    "c": 0.19435,
    "h": 289
  },
  "luminance": 0.14452
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7152D7

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

Preview Lab → · Contrast checker → · Palette generator →

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