#7F52CD#7F52CD

#7F52CD is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.183 H 296.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7F52CD
RGBrgb(127, 82, 205)
HSLhsl(262, 55%, 56%)
HSVhsv(262, 60%, 80%)
CMYKcmyk(38%, 60%, 0%, 19.6%)
CIE-LABlab(45.57, 45.22, -57.29)
CIE-LCHlch(45.57, 72.99, 308.28°)
OKLaboklab(55.01% 0.0824 -0.1629)
OKLCHoklch(55.01% 0.183 296.8)
XYZxyz(22.7863, 14.9540, 59.4317)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52CD #A0CD52
analogous
#5263CD #7F52CD #BD52CD
triadic
#7F52CD #CD7F52 #52CD7F
tetradic
#7F52CD #CD5263 #A0CD52 #52CDBD
square
#7F52CD #CD5263 #A0CD52 #52CDBD
split-complementary
#7F52CD #CDBD52 #63CD52
monochromatic
#462580 #6033AF #7F52CD #A281DB #C5B1E8

Accessibility & contrast

On white

5.26
#7F52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7F52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52CD
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52CD#FFFFFF#000000##FFFFFF
##7F52CD1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#1C6ACA
Tritanopia (blue-blind)
#6C6D88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f52cd;
/* rgb */ color: rgb(127, 82, 205);
/* oklch */ color: oklch(55.0% 0.183 296.8);
Tailwind
colors: {
  custom: {
    50: '#a984dd',
    500: '#7f52cd',
    950: '#000000',
  },
}
SCSS
$custom: #7f52cd;
$custom-light: #a984dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52cd",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 261.951,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55005,
    "c": 0.18256,
    "h": 296.8
  },
  "luminance": 0.14954
}

Semantic roles & 50–950 ramp

primary
#7F52CD
secondary
#C4D7A4
accent
#DE49A8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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