#7F5DF7#7F5DF7

#7F5DF7 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.7% C 0.219 H 288.0°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F5DF7
RGBrgb(127, 93, 247)
HSLhsl(253, 91%, 67%)
HSVhsv(253, 62%, 97%)
CMYKcmyk(48.6%, 62.3%, 0%, 3.1%)
CIE-LABlab(50.75, 50.62, -72.68)
CIE-LCHlch(50.75, 88.57, 304.86°)
OKLaboklab(59.7% 0.0678 -0.2082)
OKLCHoklch(59.7% 0.219 288)
XYZxyz(29.4504, 19.0548, 90.1038)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DF7 #D5F75D
analogous
#5D88F7 #7F5DF7 #CC5DF7
triadic
#7F5DF7 #F77F5D #5DF77F
tetradic
#7F5DF7 #F75D88 #D5F75D #5DF7CC
square
#7F5DF7 #F75D88 #D5F75D #5DF7CC
split-complementary
#7F5DF7 #F7CC5D #88F75D
monochromatic
#360ACF #5123F4 #7F5DF7 #AD97FA #DBD2FD

Accessibility & contrast

On white

4.36
#7F5DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#7F5DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5DF7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DF7#FFFFFF#000000##000000
##7F5DF71.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFC
Deuteranopia (green-blind)
#0075F4
Tritanopia (blue-blind)
#5582A2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f5df7;
/* rgb */ color: rgb(127, 93, 247);
/* oklch */ color: oklch(59.7% 0.219 288.0);
Tailwind
colors: {
  custom: {
    50: '#ad8cfb',
    500: '#7f5df7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5df7;
$custom-light: #ad8cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5df7",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 253.247,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59698,
    "c": 0.21895,
    "h": 288
  },
  "luminance": 0.19056
}

Semantic roles & 50–950 ramp

primary
#7F5DF7
secondary
#E6F1BF
accent
#E600B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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