#7F5FE5#7F5FE5

#7F5FE5 is a mid, vivid violet. Relative luminance 0.184; OKLCH L 58.7% C 0.194 H 290.1°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7F5FE5
RGBrgb(127, 95, 229)
HSLhsl(254, 72%, 64%)
HSVhsv(254, 59%, 90%)
CMYKcmyk(44.5%, 58.5%, 0%, 10.2%)
CIE-LABlab(49.92, 44.47, -63.94)
CIE-LCHlch(49.92, 77.88, 304.82°)
OKLaboklab(58.7% 0.0668 -0.1825)
OKLCHoklch(58.7% 0.194 290.1)
XYZxyz(26.9835, 18.3526, 76.2342)
Luminance0.1835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FE5 #C5E55F
analogous
#5F82E5 #7F5FE5 #C25FE5
triadic
#7F5FE5 #E57F5F #5FE57F
tetradic
#7F5FE5 #E55F82 #C5E55F #5FE5C2
square
#7F5FE5 #E55F82 #C5E55F #5FE5C2
split-complementary
#7F5FE5 #E5C25F #82E55F
monochromatic
#3F1CAD #552ADC #7F5FE5 #A994EE #D3C8F6

Accessibility & contrast

On white

4.50
#7F5FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#7F5FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5FE5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FE5#FFFFFF#000000##000000
##7F5FE51.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#0074E2
Tritanopia (blue-blind)
#607D99
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5fe5;
/* rgb */ color: rgb(127, 95, 229);
/* oklch */ color: oklch(58.7% 0.194 290.1);
Tailwind
colors: {
  custom: {
    50: '#ab8dee',
    500: '#7f5fe5',
    950: '#000000',
  },
}
SCSS
$custom: #7f5fe5;
$custom-light: #ab8dee;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5fe5",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 254.328,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58696,
    "c": 0.19429,
    "h": 290.1
  },
  "luminance": 0.18354
}

Semantic roles & 50–950 ramp

primary
#7F5FE5
secondary
#DCE8B8
accent
#D411A6
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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