#7D5CB4#7D5CB4

#7D5CB4 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.8% C 0.135 H 299.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7D5CB4
RGBrgb(125, 92, 180)
HSLhsl(263, 37%, 53%)
HSVhsv(263, 49%, 71%)
CMYKcmyk(30.6%, 48.9%, 0%, 29.4%)
CIE-LABlab(46.06, 32.48, -42.03)
CIE-LCHlch(46.06, 53.12, 307.69°)
OKLaboklab(54.83% 0.0661 -0.1182)
OKLCHoklch(54.83% 0.135 299.2)
XYZxyz(20.5209, 15.3094, 45.0451)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CB4 #93B45C
analogous
#5C67B4 #7D5CB4 #A95CB4
triadic
#7D5CB4 #B47D5C #5CB47D
tetradic
#7D5CB4 #B45C67 #93B45C #5CB4A9
square
#7D5CB4 #B45C67 #93B45C #5CB4A9
split-complementary
#7D5CB4 #B4A95C #67B45C
monochromatic
#442F66 #604290 #7D5CB4 #9E86C7 #C0B0DB

Accessibility & contrast

On white

5.17
#7D5CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7D5CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CB4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CB4#FFFFFF#000000##FFFFFF
##7D5CB41.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6DB7
Deuteranopia (green-blind)
#476CB2
Tritanopia (blue-blind)
#726C7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d5cb4;
/* rgb */ color: rgb(125, 92, 180);
/* oklch */ color: oklch(54.8% 0.135 299.2);
Tailwind
colors: {
  custom: {
    50: '#a58bcb',
    500: '#7d5cb4',
    950: '#000000',
  },
}
SCSS
$custom: #7d5cb4;
$custom-light: #a58bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5cb4",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 262.5,
    "s": 36.975,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54827,
    "c": 0.13546,
    "h": 299.2
  },
  "luminance": 0.1531
}

Semantic roles & 50–950 ramp

primary
#7D5CB4
secondary
#BBC9A3
accent
#CD5BA2
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7D5CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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