#7D52CB#7D52CB

#7D52CB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.180 H 296.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7D52CB
RGBrgb(125, 82, 203)
HSLhsl(261, 54%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(38.4%, 59.6%, 0%, 20.4%)
CIE-LABlab(45.23, 44.24, -56.70)
CIE-LCHlch(45.23, 71.92, 307.96°)
OKLaboklab(54.66% 0.0798 -0.1613)
OKLCHoklch(54.66% 0.18 296.3)
XYZxyz(22.2515, 14.7060, 58.1545)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52CB #A0CB52
analogous
#5263CB #7D52CB #B952CB
triadic
#7D52CB #CB7D52 #52CB7D
tetradic
#7D52CB #CB5263 #A0CB52 #52CBB9
square
#7D52CB #CB5263 #A0CB52 #52CBB9
split-complementary
#7D52CB #CBB952 #63CB52
monochromatic
#45267D #5E34AC #7D52CB #A081D9 #C4B0E7

Accessibility & contrast

On white

5.33
#7D52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7D52CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52CB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52CB#FFFFFF#000000##FFFFFF
##7D52CB1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#1C69C8
Tritanopia (blue-blind)
#6A6C87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d52cb;
/* rgb */ color: rgb(125, 82, 203);
/* oklch */ color: oklch(54.7% 0.180 296.3);
Tailwind
colors: {
  custom: {
    50: '#a884dc',
    500: '#7d52cb',
    950: '#000000',
  },
}
SCSS
$custom: #7d52cb;
$custom-light: #a884dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52cb",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 261.322,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54664,
    "c": 0.17992,
    "h": 296.3
  },
  "luminance": 0.14706
}

Semantic roles & 50–950 ramp

primary
#7D52CB
secondary
#C4D5A3
accent
#DD4BA9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D52CB

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

Preview Lab → · Contrast checker → · Palette generator →

#7D52CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva