#7D5BEB#7D5BEB

#7D5BEB is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.3% C 0.207 H 289.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7D5BEB
RGBrgb(125, 91, 235)
HSLhsl(254, 78%, 64%)
HSVhsv(254, 61%, 92%)
CMYKcmyk(46.8%, 61.3%, 0%, 7.8%)
CIE-LABlab(49.30, 47.98, -68.33)
CIE-LCHlch(49.30, 83.49, 305.08°)
OKLaboklab(58.33% 0.0682 -0.1954)
OKLCHoklch(58.33% 0.207 289.2)
XYZxyz(27.1896, 17.8392, 80.5918)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5BEB #C9EB5B
analogous
#5B81EB #7D5BEB #C55BEB
triadic
#7D5BEB #EB7D5B #5BEB7D
tetradic
#7D5BEB #EB5B81 #C9EB5B #5BEBC5
square
#7D5BEB #EB5B81 #C9EB5B #5BEBC5
split-complementary
#7D5BEB #EBC55B #81EB5B
monochromatic
#3C16B5 #5224E4 #7D5BEB #A892F2 #D3C8F8

Accessibility & contrast

On white

4.60
#7D5BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7D5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5BEB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5BEB#FFFFFF#000000##FFFFFF
##7D5BEB1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0072E8
Tritanopia (blue-blind)
#597D9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d5beb;
/* rgb */ color: rgb(125, 91, 235);
/* oklch */ color: oklch(58.3% 0.207 289.2);
Tailwind
colors: {
  custom: {
    50: '#aa8bf2',
    500: '#7d5beb',
    950: '#000000',
  },
}
SCSS
$custom: #7d5beb;
$custom-light: #aa8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5beb",
  "rgb": {
    "r": 125,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 254.167,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58329,
    "c": 0.20699,
    "h": 289.2
  },
  "luminance": 0.1784
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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