#7D5EB2#7D5EB2

#7D5EB2 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.1% C 0.130 H 299.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7D5EB2
RGBrgb(125, 94, 178)
HSLhsl(262, 35%, 53%)
HSVhsv(262, 47%, 70%)
CMYKcmyk(29.8%, 47.2%, 0%, 30.2%)
CIE-LABlab(46.42, 30.78, -40.29)
CIE-LCHlch(46.42, 50.70, 307.38°)
OKLaboklab(55.06% 0.0631 -0.1131)
OKLCHoklch(55.06% 0.13 299.1)
XYZxyz(20.4941, 15.5796, 44.0383)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EB2 #93B25E
analogous
#5E69B2 #7D5EB2 #A75EB2
triadic
#7D5EB2 #B27D5E #5EB27D
tetradic
#7D5EB2 #B25E69 #93B25E #5EB2A7
square
#7D5EB2 #B25E69 #93B25E #5EB2A7
split-complementary
#7D5EB2 #B2A75E #69B25E
monochromatic
#443065 #60448F #7D5EB2 #9E87C6 #C0B1DA

Accessibility & contrast

On white

5.10
#7D5EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7D5EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5EB2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EB2#FFFFFF#000000##FFFFFF
##7D5EB21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#4B6DB0
Tritanopia (blue-blind)
#726D7F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7d5eb2;
/* rgb */ color: rgb(125, 94, 178);
/* oklch */ color: oklch(55.1% 0.130 299.1);
Tailwind
colors: {
  custom: {
    50: '#a58cc9',
    500: '#7d5eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5eb2;
$custom-light: #a58cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5eb2",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 262.143,
    "s": 35.294,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55063,
    "c": 0.12954,
    "h": 299.1
  },
  "luminance": 0.1558
}

Semantic roles & 50–950 ramp

primary
#7D5EB2
secondary
#BBC8A4
accent
#CB5CA2
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7D5EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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