#7152DB#7152DB

#7152DB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.199 H 288.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7152DB
RGBrgb(113, 82, 219)
HSLhsl(254, 66%, 59%)
HSVhsv(254, 63%, 86%)
CMYKcmyk(48.4%, 62.6%, 0%, 14.1%)
CIE-LABlab(45.16, 46.17, -66.04)
CIE-LCHlch(45.16, 80.58, 304.96°)
OKLaboklab(54.69% 0.063 -0.1891)
OKLCHoklch(54.69% 0.199 288.4)
XYZxyz(22.6098, 14.6588, 68.6422)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152DB #BCDB52
analogous
#5278DB #7152DB #B652DB
triadic
#7152DB #DB7152 #52DB71
tetradic
#7152DB #DB5278 #BCDB52 #52DBB6
square
#7152DB #DB5278 #BCDB52 #52DBB6
split-complementary
#7152DB #DBB652 #78DB52
monochromatic
#391F94 #4D29C6 #7152DB #9B85E6 #C4B7F0

Accessibility & contrast

On white

5.34
#7152DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7152DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152DB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152DB#FFFFFF#000000##FFFFFF
##7152DB1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#4D738F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7152db;
/* rgb */ color: rgb(113, 82, 219);
/* oklch */ color: oklch(54.7% 0.199 288.4);
Tailwind
colors: {
  custom: {
    50: '#a284e7',
    500: '#7152db',
    950: '#000000',
  },
}
SCSS
$custom: #7152db;
$custom-light: #a284e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7152db",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 253.577,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.54691,
    "c": 0.19929,
    "h": 288.4
  },
  "luminance": 0.1466
}

Semantic roles & 50–950 ramp

primary
#7152DB
secondary
#D3DFAA
accent
#E93FC2
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7152DB

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

Preview Lab → · Contrast checker → · Palette generator →

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