#7D5BCA#7D5BCA

#7D5BCA is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.0% C 0.166 H 294.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7D5BCA
RGBrgb(125, 91, 202)
HSLhsl(258, 51%, 57%)
HSVhsv(258, 55%, 79%)
CMYKcmyk(38.1%, 55%, 0%, 20.8%)
CIE-LABlab(47.11, 38.89, -53.10)
CIE-LCHlch(47.11, 65.81, 306.22°)
OKLaboklab(56.03% 0.0689 -0.1506)
OKLCHoklch(56.03% 0.166 294.6)
XYZxyz(22.8564, 16.1059, 57.7702)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5BCA #A8CA5B
analogous
#5B71CA #7D5BCA #B45BCA
triadic
#7D5BCA #CA7D5B #5BCA7D
tetradic
#7D5BCA #CA5B71 #A8CA5B #5BCAB4
square
#7D5BCA #CA5B71 #A8CA5B #5BCAB4
split-complementary
#7D5BCA #CAB45B #71CA5B
monochromatic
#442A81 #5D39AF #7D5BCA #A289D9 #C6B8E8

Accessibility & contrast

On white

4.97
#7D5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7D5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5BCA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5BCA#FFFFFF#000000##FFFFFF
##7D5BCA1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2771CE
Deuteranopia (green-blind)
#316EC7
Tritanopia (blue-blind)
#6A728A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d5bca;
/* rgb */ color: rgb(125, 91, 202);
/* oklch */ color: oklch(56.0% 0.166 294.6);
Tailwind
colors: {
  custom: {
    50: '#a78adb',
    500: '#7d5bca',
    950: '#000000',
  },
}
SCSS
$custom: #7d5bca;
$custom-light: #a78adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5bca",
  "rgb": {
    "r": 125,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 258.378,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56028,
    "c": 0.16567,
    "h": 294.6
  },
  "luminance": 0.16106
}

Semantic roles & 50–950 ramp

primary
#7D5BCA
secondary
#C9D7AA
accent
#DB4DAF
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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