#7C5DF2#7C5DF2

#7C5DF2 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.1% C 0.213 H 287.6°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7C5DF2
RGBrgb(124, 93, 242)
HSLhsl(252, 85%, 66%)
HSVhsv(252, 62%, 95%)
CMYKcmyk(48.8%, 61.6%, 0%, 5.1%)
CIE-LABlab(50.12, 48.66, -70.92)
CIE-LCHlch(50.12, 86.00, 304.45°)
OKLaboklab(59.06% 0.0644 -0.2031)
OKLCHoklch(59.06% 0.213 287.6)
XYZxyz(28.2489, 18.5233, 86.0741)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5DF2 #D3F25D
analogous
#5D88F2 #7C5DF2 #C65DF2
triadic
#7C5DF2 #F27C5D #5DF27C
tetradic
#7C5DF2 #F25D88 #D3F25D #5DF2C6
square
#7C5DF2 #F25D88 #D3F25D #5DF2C6
split-complementary
#7C5DF2 #F2C65D #88F25D
monochromatic
#3510C5 #4E24ED #7C5DF2 #AA96F7 #D8CEFB

Accessibility & contrast

On white

4.46
#7C5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7C5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5DF2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5DF2#FFFFFF#000000##000000
##7C5DF21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#53809F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7c5df2;
/* rgb */ color: rgb(124, 93, 242);
/* oklch */ color: oklch(59.1% 0.213 287.6);
Tailwind
colors: {
  custom: {
    50: '#aa8cf7',
    500: '#7c5df2',
    950: '#000000',
  },
}
SCSS
$custom: #7c5df2;
$custom-light: #aa8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5df2",
  "rgb": {
    "r": 124,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 252.483,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.59064,
    "c": 0.21305,
    "h": 287.6
  },
  "luminance": 0.18525
}

Semantic roles & 50–950 ramp

primary
#7C5DF2
secondary
#E4EEBD
accent
#E204B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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