#7152A2#7152A2

#7152A2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 50.8% C 0.126 H 299.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7152A2
RGBrgb(113, 82, 162)
HSLhsl(263, 33%, 48%)
HSVhsv(263, 49%, 64%)
CMYKcmyk(30.2%, 49.4%, 0%, 36.5%)
CIE-LABlab(41.46, 30.39, -38.79)
CIE-LCHlch(41.46, 49.28, 308.08°)
OKLaboklab(50.78% 0.0625 -0.1091)
OKLCHoklch(50.78% 0.126 299.8)
XYZxyz(16.3474, 12.1538, 35.6601)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152A2 #83A252
analogous
#525BA2 #7152A2 #9952A2
triadic
#7152A2 #A27152 #52A271
tetradic
#7152A2 #A2525B #83A252 #52A299
square
#7152A2 #A2525B #83A252 #52A299
split-complementary
#7152A2 #A29952 #5BA252
monochromatic
#382951 #553D79 #7152A2 #9177BA #B2A0CF

Accessibility & contrast

On white

6.12
#7152A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7152A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152A2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152A2#FFFFFF#000000##FFFFFF
##7152A21.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3862A5
Deuteranopia (green-blind)
#4061A0
Tritanopia (blue-blind)
#676172
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7152a2;
/* rgb */ color: rgb(113, 82, 162);
/* oklch */ color: oklch(50.8% 0.126 299.8);
Tailwind
colors: {
  custom: {
    50: '#9c83be',
    500: '#7152a2',
    950: '#000000',
  },
}
SCSS
$custom: #7152a2;
$custom-light: #9c83be;
$custom-dark: #000000;
JSON
{
  "hex": "#7152a2",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 263.25,
    "s": 32.787,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50781,
    "c": 0.12575,
    "h": 299.8
  },
  "luminance": 0.12154
}

Semantic roles & 50–950 ramp

primary
#7152A2
secondary
#ACBC94
accent
#C95FA0
background
#F9F8FB
surface
#F2EFF7
border
#CCCAD0
text
#0E0A12
muted
#7E7C81

Preview Lab

Preview with #7152A2

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

Preview Lab → · Contrast checker → · Palette generator →

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