#7252CC#7252CC

#7252CC is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.7% C 0.181 H 291.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7252CC
RGBrgb(114, 82, 204)
HSLhsl(256, 54%, 56%)
HSVhsv(256, 60%, 80%)
CMYKcmyk(44.1%, 59.8%, 0%, 20%)
CIE-LABlab(44.19, 42.12, -59.01)
CIE-LCHlch(44.19, 72.50, 305.52°)
OKLaboklab(53.67% 0.0652 -0.1684)
OKLCHoklch(53.67% 0.181 291.2)
XYZxyz(20.8528, 13.9709, 58.7130)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7252CC #ACCC52
analogous
#526FCC #7252CC #AF52CC
triadic
#7252CC #CC7252 #52CC72
tetradic
#7252CC #CC526F #ACCC52 #52CCAF
square
#7252CC #CC526F #ACCC52 #52CCAF
split-complementary
#7252CC #CCAF52 #6FCC52
monochromatic
#3D257E #5333AE #7252CC #9981DA #BFB1E8

Accessibility & contrast

On white

5.53
#7252CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7252CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7252CC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7252CC#FFFFFF#000000##FFFFFF
##7252CC1.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#586E87
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7252cc;
/* rgb */ color: rgb(114, 82, 204);
/* oklch */ color: oklch(53.7% 0.181 291.2);
Tailwind
colors: {
  custom: {
    50: '#a184dc',
    500: '#7252cc',
    950: '#000000',
  },
}
SCSS
$custom: #7252cc;
$custom-light: #a184dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7252cc",
  "rgb": {
    "r": 114,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 255.738,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.53668,
    "c": 0.18058,
    "h": 291.2
  },
  "luminance": 0.13972
}

Semantic roles & 50–950 ramp

primary
#7252CC
secondary
#C9D6A4
accent
#DE4AB7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7252CC

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

Preview Lab → · Contrast checker → · Palette generator →

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