#7252CB#7252CB

#7252CB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.6% C 0.179 H 291.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7252CB
RGBrgb(114, 82, 203)
HSLhsl(256, 54%, 56%)
HSVhsv(256, 60%, 80%)
CMYKcmyk(43.8%, 59.6%, 0%, 20.4%)
CIE-LABlab(44.12, 41.84, -58.54)
CIE-LCHlch(44.12, 71.96, 305.55°)
OKLaboklab(53.6% 0.0653 -0.167)
OKLCHoklch(53.6% 0.179 291.3)
XYZxyz(20.7332, 13.9231, 58.0834)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7252CB #ABCB52
analogous
#526ECB #7252CB #AE52CB
triadic
#7252CB #CB7252 #52CB72
tetradic
#7252CB #CB526E #ABCB52 #52CBAE
square
#7252CB #CB526E #ABCB52 #52CBAE
split-complementary
#7252CB #CBAE52 #6ECB52
monochromatic
#3D267D #5434AC #7252CB #9881D9 #BFB0E7

Accessibility & contrast

On white

5.55
#7252CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7252CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7252CB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7252CB#FFFFFF#000000##FFFFFF
##7252CB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#586D87
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7252cb;
/* rgb */ color: rgb(114, 82, 203);
/* oklch */ color: oklch(53.6% 0.179 291.3);
Tailwind
colors: {
  custom: {
    50: '#a184dc',
    500: '#7252cb',
    950: '#000000',
  },
}
SCSS
$custom: #7252cb;
$custom-light: #a184dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7252cb",
  "rgb": {
    "r": 114,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 255.868,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53595,
    "c": 0.17931,
    "h": 291.3
  },
  "luminance": 0.13924
}

Semantic roles & 50–950 ramp

primary
#7252CB
secondary
#C8D5A3
accent
#DD4BB6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7252CB

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

Preview Lab → · Contrast checker → · Palette generator →

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