#7F5DEB#7F5DEB

#7F5DEB is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.8% C 0.204 H 289.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7F5DEB
RGBrgb(127, 93, 235)
HSLhsl(254, 78%, 64%)
HSVhsv(254, 60%, 92%)
CMYKcmyk(46%, 60.4%, 0%, 7.8%)
CIE-LABlab(49.90, 47.27, -67.34)
CIE-LCHlch(49.90, 82.27, 305.06°)
OKLaboklab(58.81% 0.0687 -0.1925)
OKLCHoklch(58.81% 0.204 289.6)
XYZxyz(27.6579, 18.3378, 80.6634)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DEB #C9EB5D
analogous
#5D82EB #7F5DEB #C65DEB
triadic
#7F5DEB #EB7F5D #5DEB7F
tetradic
#7F5DEB #EB5D82 #C9EB5D #5DEBC6
square
#7F5DEB #EB5D82 #C9EB5D #5DEBC6
split-complementary
#7F5DEB #EBC65D #82EB5D
monochromatic
#3D17B7 #5427E4 #7F5DEB #AA93F2 #D5CAF8

Accessibility & contrast

On white

4.50
#7F5DEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#7F5DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5DEB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DEB#FFFFFF#000000##000000
##7F5DEB1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5deb;
/* rgb */ color: rgb(127, 93, 235);
/* oklch */ color: oklch(58.8% 0.204 289.6);
Tailwind
colors: {
  custom: {
    50: '#ab8cf2',
    500: '#7f5deb',
    950: '#000000',
  },
}
SCSS
$custom: #7f5deb;
$custom-light: #ab8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5deb",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 254.366,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58813,
    "c": 0.20436,
    "h": 289.6
  },
  "luminance": 0.18339
}

Semantic roles & 50–950 ramp

primary
#7F5DEB
secondary
#DFEBB9
accent
#DA0BA9
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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