#7D5BB2#7D5BB2

#7D5BB2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.5% C 0.134 H 300.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7D5BB2
RGBrgb(125, 91, 178)
HSLhsl(263, 36%, 53%)
HSVhsv(263, 49%, 70%)
CMYKcmyk(29.8%, 48.9%, 0%, 30.2%)
CIE-LABlab(45.71, 32.55, -41.41)
CIE-LCHlch(45.71, 52.67, 308.17°)
OKLaboklab(54.53% 0.0673 -0.1164)
OKLCHoklch(54.53% 0.134 300)
XYZxyz(20.2325, 15.0564, 43.9511)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5BB2 #90B25B
analogous
#5B64B2 #7D5BB2 #A85BB2
triadic
#7D5BB2 #B27D5B #5BB27D
tetradic
#7D5BB2 #B25B64 #90B25B #5BB2A8
square
#7D5BB2 #B25B64 #90B25B #5BB2A8
split-complementary
#7D5BB2 #B2A85B #64B25B
monochromatic
#442F64 #60428D #7D5BB2 #9E85C6 #BFAED9

Accessibility & contrast

On white

5.24
#7D5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7D5BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5BB2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5BB2#FFFFFF#000000##FFFFFF
##7D5BB21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#476CB0
Tritanopia (blue-blind)
#736B7E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7d5bb2;
/* rgb */ color: rgb(125, 91, 178);
/* oklch */ color: oklch(54.5% 0.134 300.0);
Tailwind
colors: {
  custom: {
    50: '#a58ac9',
    500: '#7d5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5bb2;
$custom-light: #a58ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5bb2",
  "rgb": {
    "r": 125,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 263.448,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54534,
    "c": 0.13445,
    "h": 300
  },
  "luminance": 0.15056
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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