#7D5BEC#7D5BEC

#7D5BEC is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.4% C 0.208 H 289.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7D5BEC
RGBrgb(125, 91, 236)
HSLhsl(254, 79%, 64%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(47%, 61.4%, 0%, 7.5%)
CIE-LABlab(49.37, 48.26, -68.77)
CIE-LCHlch(49.37, 84.02, 305.06°)
OKLaboklab(58.4% 0.0681 -0.1967)
OKLCHoklch(58.4% 0.208 289.1)
XYZxyz(27.3345, 17.8972, 81.3549)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5BEC #CAEC5B
analogous
#5B82EC #7D5BEC #C65BEC
triadic
#7D5BEC #EC7D5B #5BEC7D
tetradic
#7D5BEC #EC5B82 #CAEC5B #5BECC6
square
#7D5BEC #EC5B82 #CAEC5B #5BECC6
split-complementary
#7D5BEC #ECC65B #82EC5B
monochromatic
#3B15B7 #5224E6 #7D5BEC #A892F2 #D4C9F9

Accessibility & contrast

On white

4.59
#7D5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7D5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5BEC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5BEC#FFFFFF#000000##FFFFFF
##7D5BEC1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d5bec;
/* rgb */ color: rgb(125, 91, 236);
/* oklch */ color: oklch(58.4% 0.208 289.1);
Tailwind
colors: {
  custom: {
    50: '#aa8bf3',
    500: '#7d5bec',
    950: '#000000',
  },
}
SCSS
$custom: #7d5bec;
$custom-light: #aa8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5bec",
  "rgb": {
    "r": 125,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 254.069,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58403,
    "c": 0.20821,
    "h": 289.1
  },
  "luminance": 0.17898
}

Semantic roles & 50–950 ramp

primary
#7D5BEC
secondary
#DFEBB8
accent
#DC0AAA
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7D5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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