#7252EC#7252EC

#7252EC is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.1% C 0.220 H 286.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7252EC
RGBrgb(114, 82, 236)
HSLhsl(252, 80%, 62%)
HSVhsv(252, 65%, 93%)
CMYKcmyk(51.7%, 65.3%, 0%, 7.5%)
CIE-LABlab(46.53, 51.21, -73.43)
CIE-LCHlch(46.53, 89.53, 304.89°)
OKLaboklab(56.11% 0.0625 -0.2108)
OKLCHoklch(56.11% 0.22 286.5)
XYZxyz(25.0926, 15.6668, 81.0424)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7252EC #CCEC52
analogous
#527FEC #7252EC #BF52EC
triadic
#7252EC #EC7252 #52EC72
tetradic
#7252EC #EC527F #CCEC52 #52ECBF
square
#7252EC #EC527F #CCEC52 #52ECBF
split-complementary
#7252EC #ECBF52 #7FEC52
monochromatic
#3413B0 #451BE6 #7252EC #9F89F2 #CCC0F8

Accessibility & contrast

On white

5.08
#7252EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7252EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7252EC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7252EC#FFFFFF#000000##FFFFFF
##7252EC1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F1
Deuteranopia (green-blind)
#006AE9
Tritanopia (blue-blind)
#427898
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7252ec;
/* rgb */ color: rgb(114, 82, 236);
/* oklch */ color: oklch(56.1% 0.220 286.5);
Tailwind
colors: {
  custom: {
    50: '#a585f3',
    500: '#7252ec',
    950: '#000000',
  },
}
SCSS
$custom: #7252ec;
$custom-light: #a585f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7252ec",
  "rgb": {
    "r": 114,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 252.468,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56106,
    "c": 0.21987,
    "h": 286.5
  },
  "luminance": 0.15668
}

Semantic roles & 50–950 ramp

primary
#7252EC
secondary
#DDE9B1
accent
#DD09B1
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7252EC

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

Preview Lab → · Contrast checker → · Palette generator →

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