#7152D2#7152D2

#7152D2 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.188 H 289.8°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7152D2
RGBrgb(113, 82, 210)
HSLhsl(255, 59%, 57%)
HSVhsv(255, 61%, 82%)
CMYKcmyk(46.2%, 61%, 0%, 17.6%)
CIE-LABlab(44.52, 43.61, -61.94)
CIE-LCHlch(44.52, 75.75, 305.15°)
OKLaboklab(54.01% 0.0636 -0.177)
OKLCHoklch(54.01% 0.188 289.8)
XYZxyz(21.4569, 14.1976, 62.5701)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152D2 #B3D252
analogous
#5273D2 #7152D2 #B152D2
triadic
#7152D2 #D27152 #52D271
tetradic
#7152D2 #D25273 #B3D252 #52D2B1
square
#7152D2 #D25273 #B3D252 #52D2B1
split-complementary
#7152D2 #D2B152 #73D252
monochromatic
#3B2387 #5030B7 #7152D2 #9983DF #C1B3EB

Accessibility & contrast

On white

5.47
#7152D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7152D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152D2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152D2#FFFFFF#000000##FFFFFF
##7152D21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#53708A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7152d2;
/* rgb */ color: rgb(113, 82, 210);
/* oklch */ color: oklch(54.0% 0.188 289.8);
Tailwind
colors: {
  custom: {
    50: '#a184e1',
    500: '#7152d2',
    950: '#000000',
  },
}
SCSS
$custom: #7152d2;
$custom-light: #a184e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7152d2",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 254.531,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.18811,
    "h": 289.8
  },
  "luminance": 0.14198
}

Semantic roles & 50–950 ramp

primary
#7152D2
secondary
#CDDAA6
accent
#E246BC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7152D2

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

Preview Lab → · Contrast checker → · Palette generator →

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