#7252ED#7252ED

#7252ED is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.2% C 0.221 H 286.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7252ED
RGBrgb(114, 82, 237)
HSLhsl(252, 81%, 63%)
HSVhsv(252, 65%, 93%)
CMYKcmyk(51.9%, 65.4%, 0%, 7.1%)
CIE-LABlab(46.61, 51.50, -73.87)
CIE-LCHlch(46.61, 90.05, 304.88°)
OKLaboklab(56.19% 0.0624 -0.2121)
OKLCHoklch(56.19% 0.221 286.4)
XYZxyz(25.2382, 15.7251, 81.8097)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7252ED #CDED52
analogous
#5280ED #7252ED #BF52ED
triadic
#7252ED #ED7252 #52ED72
tetradic
#7252ED #ED5280 #CDED52 #52EDBF
square
#7252ED #ED5280 #CDED52 #52EDBF
split-complementary
#7252ED #EDBF52 #80ED52
monochromatic
#3313B2 #451BE7 #7252ED #9F89F3 #CCC1F9

Accessibility & contrast

On white

5.07
#7252ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7252ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7252ED
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7252ED#FFFFFF#000000##FFFFFF
##7252ED1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F2
Deuteranopia (green-blind)
#006AEA
Tritanopia (blue-blind)
#417999
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7252ed;
/* rgb */ color: rgb(114, 82, 237);
/* oklch */ color: oklch(56.2% 0.221 286.4);
Tailwind
colors: {
  custom: {
    50: '#a585f4',
    500: '#7252ed',
    950: '#000000',
  },
}
SCSS
$custom: #7252ed;
$custom-light: #a585f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7252ed",
  "rgb": {
    "r": 114,
    "g": 82,
    "b": 237
  },
  "hsl": {
    "h": 252.387,
    "s": 81.152,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56186,
    "c": 0.22107,
    "h": 286.4
  },
  "luminance": 0.15726
}

Semantic roles & 50–950 ramp

primary
#7252ED
secondary
#DEEAB1
accent
#DE08B1
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7252ED

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

Preview Lab → · Contrast checker → · Palette generator →

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