#7F5EF7#7F5EF7

#7F5EF7 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.8% C 0.218 H 287.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7F5EF7
RGBrgb(127, 94, 247)
HSLhsl(253, 91%, 67%)
HSVhsv(253, 62%, 97%)
CMYKcmyk(48.6%, 61.9%, 0%, 3.1%)
CIE-LABlab(50.96, 50.07, -72.35)
CIE-LCHlch(50.96, 87.98, 304.69°)
OKLaboklab(59.85% 0.0669 -0.2072)
OKLCHoklch(59.85% 0.218 287.9)
XYZxyz(29.5387, 19.2315, 90.1333)
Luminance0.1923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EF7 #D6F75E
analogous
#5E8AF7 #7F5EF7 #CC5EF7
triadic
#7F5EF7 #F77F5E #5EF77F
tetradic
#7F5EF7 #F75E8A #D6F75E #5EF7CC
square
#7F5EF7 #F75E8A #D6F75E #5EF7CC
split-complementary
#7F5EF7 #F7CC5E #8AF75E
monochromatic
#350AD0 #5124F4 #7F5EF7 #AD98FA #DCD3FD

Accessibility & contrast

On white

4.33
#7F5EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#7F5EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EF7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EF7#FFFFFF#000000##000000
##7F5EF71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5ef7;
/* rgb */ color: rgb(127, 94, 247);
/* oklch */ color: oklch(59.8% 0.218 287.9);
Tailwind
colors: {
  custom: {
    50: '#ad8dfb',
    500: '#7f5ef7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ef7;
$custom-light: #ad8dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ef7",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 252.941,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59847,
    "c": 0.21771,
    "h": 287.9
  },
  "luminance": 0.19233
}

Semantic roles & 50–950 ramp

primary
#7F5EF7
secondary
#E6F1C0
accent
#E600B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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