#7F5FF4#7F5FF4

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

Color values

HEX#7F5FF4
RGBrgb(127, 95, 244)
HSLhsl(253, 87%, 66%)
HSVhsv(253, 61%, 96%)
CMYKcmyk(48%, 61.1%, 0%, 4.3%)
CIE-LABlab(50.95, 48.68, -70.68)
CIE-LCHlch(50.95, 85.82, 304.55°)
OKLaboklab(59.78% 0.0661 -0.2023)
OKLCHoklch(59.78% 0.213 288.1)
XYZxyz(29.1690, 19.2268, 87.7446)
Luminance0.1923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FF4 #D4F45F
analogous
#5F8AF4 #7F5FF4 #CA5FF4
triadic
#7F5FF4 #F47F5F #5FF47F
tetradic
#7F5FF4 #F45F8A #D4F45F #5FF4CA
square
#7F5FF4 #F45F8A #D4F45F #5FF4CA
split-complementary
#7F5FF4 #F4CA5F #8AF45F
monochromatic
#360ECB #5126F0 #7F5FF4 #AD98F8 #DBD2FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5FF4#FFFFFF#000000##000000
##7F5FF41.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)
#007DF9
Deuteranopia (green-blind)
#0075F1
Tritanopia (blue-blind)
#5782A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f5ff4;
/* rgb */ color: rgb(127, 95, 244);
/* oklch */ color: oklch(59.8% 0.213 288.1);
Tailwind
colors: {
  custom: {
    50: '#ac8ef9',
    500: '#7f5ff4',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ff4;
$custom-light: #ac8ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ff4",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 244
  },
  "hsl": {
    "h": 252.886,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59776,
    "c": 0.21281,
    "h": 288.1
  },
  "luminance": 0.19228
}

Semantic roles & 50–950 ramp

primary
#7F5FF4
secondary
#E5F0BF
accent
#E402B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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