#7F5CEB#7F5CEB

#7F5CEB is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.7% C 0.206 H 289.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7F5CEB
RGBrgb(127, 92, 235)
HSLhsl(255, 78%, 64%)
HSVhsv(255, 61%, 92%)
CMYKcmyk(46%, 60.9%, 0%, 7.8%)
CIE-LABlab(49.69, 47.82, -67.68)
CIE-LCHlch(49.69, 82.87, 305.24°)
OKLaboklab(58.66% 0.0697 -0.1935)
OKLCHoklch(58.66% 0.206 289.8)
XYZxyz(27.5707, 18.1634, 80.6344)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CEB #C8EB5C
analogous
#5C81EB #7F5CEB #C65CEB
triadic
#7F5CEB #EB7F5C #5CEB7F
tetradic
#7F5CEB #EB5C81 #C8EB5C #5CEBC6
square
#7F5CEB #EB5C81 #C8EB5C #5CEBC6
split-complementary
#7F5CEB #EBC65C #81EB5C
monochromatic
#3D16B6 #5425E4 #7F5CEB #AA93F2 #D5C9F8

Accessibility & contrast

On white

4.53
#7F5CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7F5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5CEB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CEB#FFFFFF#000000##000000
##7F5CEB1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#5D7D9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5ceb;
/* rgb */ color: rgb(127, 92, 235);
/* oklch */ color: oklch(58.7% 0.206 289.8);
Tailwind
colors: {
  custom: {
    50: '#ab8cf2',
    500: '#7f5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ceb;
$custom-light: #ab8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ceb",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 254.685,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5866,
    "c": 0.20566,
    "h": 289.8
  },
  "luminance": 0.18164
}

Semantic roles & 50–950 ramp

primary
#7F5CEB
secondary
#DEEAB8
accent
#DA0BA8
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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