#7F5FF2#7F5FF2

#7F5FF2 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.6% C 0.210 H 288.3°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7F5FF2
RGBrgb(127, 95, 242)
HSLhsl(253, 85%, 66%)
HSVhsv(253, 61%, 95%)
CMYKcmyk(47.5%, 60.7%, 0%, 5.1%)
CIE-LABlab(50.81, 48.11, -69.79)
CIE-LCHlch(50.81, 84.77, 304.58°)
OKLaboklab(59.63% 0.0662 -0.1997)
OKLCHoklch(59.63% 0.21 288.3)
XYZxyz(28.8670, 19.1060, 86.1540)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FF2 #D2F25F
analogous
#5F88F2 #7F5FF2 #C85FF2
triadic
#7F5FF2 #F27F5F #5FF27F
tetradic
#7F5FF2 #F25F88 #D2F25F #5FF2C8
square
#7F5FF2 #F25F88 #D2F25F #5FF2C8
split-complementary
#7F5FF2 #F2C85F #88F25F
monochromatic
#3810C6 #5226ED #7F5FF2 #AC98F7 #DAD0FB

Accessibility & contrast

On white

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

On black

4.82
#7F5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5FF2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FF2#FFFFFF#000000##000000
##7F5FF21.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#5981A0
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f5ff2;
/* rgb */ color: rgb(127, 95, 242);
/* oklch */ color: oklch(59.6% 0.210 288.3);
Tailwind
colors: {
  custom: {
    50: '#ac8ef7',
    500: '#7f5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ff2;
$custom-light: #ac8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ff2",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 253.061,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59629,
    "c": 0.21036,
    "h": 288.3
  },
  "luminance": 0.19107
}

Semantic roles & 50–950 ramp

primary
#7F5FF2
secondary
#E4EFBE
accent
#E104B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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