#7D5CB5#7D5CB5

#7D5CB5 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.9% C 0.137 H 298.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7D5CB5
RGBrgb(125, 92, 181)
HSLhsl(262, 38%, 54%)
HSVhsv(262, 49%, 71%)
CMYKcmyk(30.9%, 49.2%, 0%, 29%)
CIE-LABlab(46.11, 32.74, -42.53)
CIE-LCHlch(46.11, 53.67, 307.59°)
OKLaboklab(54.89% 0.0662 -0.1197)
OKLCHoklch(54.89% 0.137 298.9)
XYZxyz(20.6231, 15.3503, 45.5835)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CB5 #94B55C
analogous
#5C67B5 #7D5CB5 #A95CB5
triadic
#7D5CB5 #B57D5C #5CB57D
tetradic
#7D5CB5 #B55C67 #94B55C #5CB5A9
square
#7D5CB5 #B55C67 #94B55C #5CB5A9
split-complementary
#7D5CB5 #B5A95C #67B55C
monochromatic
#442F68 #604292 #7D5CB5 #9F86C8 #C0B0DB

Accessibility & contrast

On white

5.16
#7D5CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7D5CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CB5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CB5#FFFFFF#000000##FFFFFF
##7D5CB51.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6DB8
Deuteranopia (green-blind)
#466CB3
Tritanopia (blue-blind)
#716D80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d5cb5;
/* rgb */ color: rgb(125, 92, 181);
/* oklch */ color: oklch(54.9% 0.137 298.9);
Tailwind
colors: {
  custom: {
    50: '#a58bcb',
    500: '#7d5cb5',
    950: '#000000',
  },
}
SCSS
$custom: #7d5cb5;
$custom-light: #a58bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5cb5",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 262.247,
    "s": 37.553,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54886,
    "c": 0.13678,
    "h": 298.9
  },
  "luminance": 0.1535
}

Semantic roles & 50–950 ramp

primary
#7D5CB5
secondary
#BBC9A3
accent
#CE5AA3
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7D5CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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