#7D5CB3#7D5CB3

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

Color values

HEX#7D5CB3
RGBrgb(125, 92, 179)
HSLhsl(263, 36%, 53%)
HSVhsv(263, 49%, 70%)
CMYKcmyk(30.2%, 48.6%, 0%, 29.8%)
CIE-LABlab(46.00, 32.22, -41.54)
CIE-LCHlch(46.00, 52.57, 307.80°)
OKLaboklab(54.77% 0.066 -0.1168)
OKLCHoklch(54.77% 0.134 299.5)
XYZxyz(20.4194, 15.2688, 44.5105)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CB3 #92B35C
analogous
#5C66B3 #7D5CB3 #A95CB3
triadic
#7D5CB3 #B37D5C #5CB37D
tetradic
#7D5CB3 #B35C66 #92B35C #5CB3A9
square
#7D5CB3 #B35C66 #92B35C #5CB3A9
split-complementary
#7D5CB3 #B3A95C #66B35C
monochromatic
#442F65 #60438F #7D5CB3 #9E86C6 #C0AFDA

Accessibility & contrast

On white

5.18
#7D5CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7D5CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CB3
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CB3#FFFFFF#000000##FFFFFF
##7D5CB31.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406DB6
Deuteranopia (green-blind)
#486CB1
Tritanopia (blue-blind)
#726C7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d5cb3;
/* rgb */ color: rgb(125, 92, 179);
/* oklch */ color: oklch(54.8% 0.134 299.5);
Tailwind
colors: {
  custom: {
    50: '#a58bca',
    500: '#7d5cb3',
    950: '#000000',
  },
}
SCSS
$custom: #7d5cb3;
$custom-light: #a58bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5cb3",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 262.759,
    "s": 36.402,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54768,
    "c": 0.13414,
    "h": 299.5
  },
  "luminance": 0.15269
}

Semantic roles & 50–950 ramp

primary
#7D5CB3
secondary
#BAC8A3
accent
#CC5BA2
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7D5CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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