#7D5CB1#7D5CB1

#7D5CB1 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.7% C 0.131 H 300.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7D5CB1
RGBrgb(125, 92, 177)
HSLhsl(263, 35%, 53%)
HSVhsv(263, 48%, 69%)
CMYKcmyk(29.4%, 48%, 0%, 30.6%)
CIE-LABlab(45.89, 31.70, -40.54)
CIE-LCHlch(45.89, 51.46, 308.03°)
OKLaboklab(54.65% 0.0657 -0.1139)
OKLCHoklch(54.65% 0.131 300)
XYZxyz(20.2186, 15.1885, 43.4529)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CB1 #90B15C
analogous
#5C65B1 #7D5CB1 #A75CB1
triadic
#7D5CB1 #B17D5C #5CB17D
tetradic
#7D5CB1 #B15C65 #90B15C #5CB1A7
square
#7D5CB1 #B15C65 #90B15C #5CB1A7
split-complementary
#7D5CB1 #B1A75C #65B15C
monochromatic
#442F63 #60438D #7D5CB1 #9E85C5 #BFAFD9

Accessibility & contrast

On white

5.20
#7D5CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7D5CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CB1
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CB1#FFFFFF#000000##FFFFFF
##7D5CB11.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426CB4
Deuteranopia (green-blind)
#496CAF
Tritanopia (blue-blind)
#736B7E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d5cb1;
/* rgb */ color: rgb(125, 92, 177);
/* oklch */ color: oklch(54.7% 0.131 300.0);
Tailwind
colors: {
  custom: {
    50: '#a58bc9',
    500: '#7d5cb1',
    950: '#000000',
  },
}
SCSS
$custom: #7d5cb1;
$custom-light: #a58bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5cb1",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 263.294,
    "s": 35.27,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54651,
    "c": 0.13149,
    "h": 300
  },
  "luminance": 0.15189
}

Semantic roles & 50–950 ramp

primary
#7D5CB1
secondary
#B9C7A2
accent
#CB5CA0
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7D5CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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