#7252DB#7252DB

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

Color values

HEX#7252DB
RGBrgb(114, 82, 219)
HSLhsl(254, 66%, 59%)
HSVhsv(254, 63%, 86%)
CMYKcmyk(47.9%, 62.6%, 0%, 14.1%)
CIE-LABlab(45.26, 46.36, -65.88)
CIE-LCHlch(45.26, 80.56, 305.13°)
OKLaboklab(54.78% 0.0643 -0.1886)
OKLCHoklch(54.78% 0.199 288.8)
XYZxyz(22.7392, 14.7255, 68.6483)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7252DB #BBDB52
analogous
#5277DB #7252DB #B752DB
triadic
#7252DB #DB7252 #52DB72
tetradic
#7252DB #DB5277 #BBDB52 #52DBB7
square
#7252DB #DB5277 #BBDB52 #52DBB7
split-complementary
#7252DB #DBB752 #77DB52
monochromatic
#3A1F94 #4E29C6 #7252DB #9B85E6 #C5B7F0

Accessibility & contrast

On white

5.32
#7252DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7252DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7252DB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7252DB#FFFFFF#000000##FFFFFF
##7252DB1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7252db;
/* rgb */ color: rgb(114, 82, 219);
/* oklch */ color: oklch(54.8% 0.199 288.8);
Tailwind
colors: {
  custom: {
    50: '#a284e7',
    500: '#7252db',
    950: '#000000',
  },
}
SCSS
$custom: #7252db;
$custom-light: #a284e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7252db",
  "rgb": {
    "r": 114,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 254.015,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5478,
    "c": 0.19925,
    "h": 288.8
  },
  "luminance": 0.14726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7252DB

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

Preview Lab → · Contrast checker → · Palette generator →

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