#7F5FF8#7F5FF8

#7F5FF8 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.1% C 0.218 H 287.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7F5FF8
RGBrgb(127, 95, 248)
HSLhsl(253, 92%, 67%)
HSVhsv(253, 62%, 97%)
CMYKcmyk(48.8%, 61.7%, 0%, 2.7%)
CIE-LABlab(51.24, 49.80, -72.45)
CIE-LCHlch(51.24, 87.92, 304.50°)
OKLaboklab(60.07% 0.0658 -0.2075)
OKLCHoklch(60.07% 0.218 287.6)
XYZxyz(29.7829, 19.4724, 90.9780)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FF8 #D8F85F
analogous
#5F8CF8 #7F5FF8 #CC5FF8
triadic
#7F5FF8 #F87F5F #5FF87F
tetradic
#7F5FF8 #F85F8C #D8F85F #5FF8CC
square
#7F5FF8 #F85F8C #D8F85F #5FF8CC
split-complementary
#7F5FF8 #F8CC5F #8CF85F
monochromatic
#3409D3 #5024F5 #7F5FF8 #AE9AFB #DDD4FD

Accessibility & contrast

On white

4.29
#7F5FF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#7F5FF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5FF8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FF8#FFFFFF#000000##000000
##7F5FF81.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFD
Deuteranopia (green-blind)
#0076F5
Tritanopia (blue-blind)
#5583A3
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f5ff8;
/* rgb */ color: rgb(127, 95, 248);
/* oklch */ color: oklch(60.1% 0.218 287.6);
Tailwind
colors: {
  custom: {
    50: '#ad8efc',
    500: '#7f5ff8',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ff8;
$custom-light: #ad8efc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ff8",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 248
  },
  "hsl": {
    "h": 252.549,
    "s": 91.617,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60072,
    "c": 0.21768,
    "h": 287.6
  },
  "luminance": 0.19474
}

Semantic roles & 50–950 ramp

primary
#7F5FF8
secondary
#E7F2C1
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7F5FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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