#7F52CC#7F52CC

#7F52CC is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.181 H 297.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7F52CC
RGBrgb(127, 82, 204)
HSLhsl(262, 54%, 56%)
HSVhsv(262, 60%, 80%)
CMYKcmyk(37.7%, 59.8%, 0%, 20%)
CIE-LABlab(45.51, 44.95, -56.82)
CIE-LCHlch(45.51, 72.46, 308.35°)
OKLaboklab(54.94% 0.0824 -0.1615)
OKLCHoklch(54.94% 0.181 297)
XYZxyz(22.6660, 14.9059, 58.7980)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52CC #9FCC52
analogous
#5262CC #7F52CC #BC52CC
triadic
#7F52CC #CC7F52 #52CC7F
tetradic
#7F52CC #CC5262 #9FCC52 #52CCBC
square
#7F52CC #CC5262 #9FCC52 #52CCBC
split-complementary
#7F52CC #CCBC52 #62CC52
monochromatic
#46257E #6033AE #7F52CC #A281DA #C5B1E8

Accessibility & contrast

On white

5.27
#7F52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7F52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52CC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52CC#FFFFFF#000000##FFFFFF
##7F52CC1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1E6AC9
Tritanopia (blue-blind)
#6D6C87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f52cc;
/* rgb */ color: rgb(127, 82, 204);
/* oklch */ color: oklch(54.9% 0.181 297.0);
Tailwind
colors: {
  custom: {
    50: '#a984dc',
    500: '#7f52cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f52cc;
$custom-light: #a984dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52cc",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 262.131,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54935,
    "c": 0.18136,
    "h": 297
  },
  "luminance": 0.14906
}

Semantic roles & 50–950 ramp

primary
#7F52CC
secondary
#C4D6A4
accent
#DE4AA7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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