#7F5EF9#7F5EF9

#7F5EF9 is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.0% C 0.220 H 287.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7F5EF9
RGBrgb(127, 94, 249)
HSLhsl(253, 93%, 67%)
HSVhsv(253, 62%, 98%)
CMYKcmyk(49%, 62.2%, 0%, 2.4%)
CIE-LABlab(51.10, 50.63, -73.23)
CIE-LCHlch(51.10, 89.03, 304.66°)
OKLaboklab(60% 0.0667 -0.2098)
OKLCHoklch(60% 0.22 287.6)
XYZxyz(29.8490, 19.3556, 91.7674)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EF9 #D8F95E
analogous
#5E8BF9 #7F5EF9 #CC5EF9
triadic
#7F5EF9 #F97F5E #5EF97F
tetradic
#7F5EF9 #F95E8B #D8F95E #5EF9CC
square
#7F5EF9 #F95E8B #D8F95E #5EF9CC
split-complementary
#7F5EF9 #F9CC5E #8BF95E
monochromatic
#3408D5 #5023F7 #7F5EF9 #AE99FB #DDD4FD

Accessibility & contrast

On white

4.31
#7F5EF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7F5EF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EF9
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EF9#FFFFFF#000000##000000
##7F5EF91.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFE
Deuteranopia (green-blind)
#0076F6
Tritanopia (blue-blind)
#5483A3
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f5ef9;
/* rgb */ color: rgb(127, 94, 249);
/* oklch */ color: oklch(60.0% 0.220 287.6);
Tailwind
colors: {
  custom: {
    50: '#ad8dfc',
    500: '#7f5ef9',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ef9;
$custom-light: #ad8dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ef9",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 249
  },
  "hsl": {
    "h": 252.774,
    "s": 92.814,
    "l": 67.255
  },
  "oklch": {
    "l": 0.59997,
    "c": 0.22013,
    "h": 287.6
  },
  "luminance": 0.19357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F5EF9

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

Preview Lab → · Contrast checker → · Palette generator →

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