#7F5EF0#7F5EF0

#7F5EF0 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.3% C 0.209 H 288.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F5EF0
RGBrgb(127, 94, 240)
HSLhsl(254, 83%, 65%)
HSVhsv(254, 61%, 94%)
CMYKcmyk(47.1%, 60.8%, 0%, 5.9%)
CIE-LABlab(50.46, 48.11, -69.24)
CIE-LCHlch(50.46, 84.31, 304.79°)
OKLaboklab(59.33% 0.0673 -0.1981)
OKLCHoklch(59.33% 0.209 288.8)
XYZxyz(28.4788, 18.8075, 84.5508)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EF0 #CFF05E
analogous
#5E86F0 #7F5EF0 #C85EF0
triadic
#7F5EF0 #F07F5E #5EF07F
tetradic
#7F5EF0 #F05E86 #CFF05E #5EF0C8
square
#7F5EF0 #F05E86 #CFF05E #5EF0C8
split-complementary
#7F5EF0 #F0C85E #86F05E
monochromatic
#3A12C2 #5226EB #7F5EF0 #AC96F5 #D8CEFA

Accessibility & contrast

On white

4.41
#7F5EF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7F5EF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EF0
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EF0#FFFFFF#000000##000000
##7F5EF01.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF5
Deuteranopia (green-blind)
#0074ED
Tritanopia (blue-blind)
#5A809E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5ef0;
/* rgb */ color: rgb(127, 94, 240);
/* oklch */ color: oklch(59.3% 0.209 288.8);
Tailwind
colors: {
  custom: {
    50: '#ac8df6',
    500: '#7f5ef0',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ef0;
$custom-light: #ac8df6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ef0",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 240
  },
  "hsl": {
    "h": 253.562,
    "s": 82.955,
    "l": 65.49
  },
  "oklch": {
    "l": 0.5933,
    "c": 0.20919,
    "h": 288.8
  },
  "luminance": 0.18809
}

Semantic roles & 50–950 ramp

primary
#7F5EF0
secondary
#E2EDBC
accent
#DF06AE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5EF0

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

Preview Lab → · Contrast checker → · Palette generator →

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