#7152F2#7152F2

#7152F2 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.227 H 285.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7152F2
RGBrgb(113, 82, 242)
HSLhsl(252, 86%, 64%)
HSVhsv(252, 66%, 95%)
CMYKcmyk(53.3%, 66.1%, 0%, 5.1%)
CIE-LABlab(46.91, 52.76, -76.19)
CIE-LCHlch(46.91, 92.67, 304.70°)
OKLaboklab(56.51% 0.0604 -0.2189)
OKLCHoklch(56.51% 0.227 285.4)
XYZxyz(25.8495, 15.9547, 85.7047)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152F2 #D3F252
analogous
#5283F2 #7152F2 #C152F2
triadic
#7152F2 #F27152 #52F271
tetradic
#7152F2 #F25283 #D3F252 #52F2C1
square
#7152F2 #F25283 #D3F252 #52F2C1
split-complementary
#7152F2 #F2C152 #83F252
monochromatic
#300EBC #4219EE #7152F2 #A08BF6 #CEC4FB

Accessibility & contrast

On white

5.01
#7152F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7152F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152F2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152F2#FFFFFF#000000##FFFFFF
##7152F21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#3A7B9B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7152f2;
/* rgb */ color: rgb(113, 82, 242);
/* oklch */ color: oklch(56.5% 0.227 285.4);
Tailwind
colors: {
  custom: {
    50: '#a585f7',
    500: '#7152f2',
    950: '#000000',
  },
}
SCSS
$custom: #7152f2;
$custom-light: #a585f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7152f2",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 242
  },
  "hsl": {
    "h": 251.625,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.56505,
    "c": 0.2271,
    "h": 285.4
  },
  "luminance": 0.15956
}

Semantic roles & 50–950 ramp

primary
#7152F2
secondary
#E1ECB4
accent
#E303B7
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7152F2

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

Preview Lab → · Contrast checker → · Palette generator →

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