#7C5FF2#7C5FF2

#7C5FF2 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.4% C 0.211 H 287.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7C5FF2
RGBrgb(124, 95, 242)
HSLhsl(252, 85%, 66%)
HSVhsv(252, 61%, 95%)
CMYKcmyk(48.8%, 60.7%, 0%, 5.1%)
CIE-LABlab(50.55, 47.54, -70.24)
CIE-LCHlch(50.55, 84.81, 304.09°)
OKLaboklab(59.37% 0.0624 -0.2011)
OKLCHoklch(59.37% 0.211 287.2)
XYZxyz(28.4267, 18.8790, 86.1334)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5FF2 #D5F25F
analogous
#5F8BF2 #7C5FF2 #C55FF2
triadic
#7C5FF2 #F27C5F #5FF27C
tetradic
#7C5FF2 #F25F8B #D5F25F #5FF2C5
square
#7C5FF2 #F25F8B #D5F25F #5FF2C5
split-complementary
#7C5FF2 #F2C55F #8BF25F
monochromatic
#3410C6 #4E26ED #7C5FF2 #AA98F7 #D9D0FB

Accessibility & contrast

On white

4.40
#7C5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7C5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5FF2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5FF2#FFFFFF#000000##000000
##7C5FF21.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#5382A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7c5ff2;
/* rgb */ color: rgb(124, 95, 242);
/* oklch */ color: oklch(59.4% 0.211 287.2);
Tailwind
colors: {
  custom: {
    50: '#aa8ef7',
    500: '#7c5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ff2;
$custom-light: #aa8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ff2",
  "rgb": {
    "r": 124,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 251.837,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59371,
    "c": 0.21052,
    "h": 287.2
  },
  "luminance": 0.1888
}

Semantic roles & 50–950 ramp

primary
#7C5FF2
secondary
#E5EFBE
accent
#E104B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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