#7D5CA7#7D5CA7

#7D5CA7 is a mid, moderate violet. Relative luminance 0.148; OKLCH L 54.1% C 0.118 H 303.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7D5CA7
RGBrgb(125, 92, 167)
HSLhsl(266, 30%, 51%)
HSVhsv(266, 45%, 65%)
CMYKcmyk(25.1%, 44.9%, 0%, 34.5%)
CIE-LABlab(45.37, 29.17, -35.50)
CIE-LCHlch(45.37, 45.94, 309.41°)
OKLaboklab(54.09% 0.0643 -0.0992)
OKLCHoklch(54.09% 0.118 303)
XYZxyz(19.2581, 14.8043, 38.3947)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CA7 #86A75C
analogous
#5C60A7 #7D5CA7 #A25CA7
triadic
#7D5CA7 #A77D5C #5CA77D
tetradic
#7D5CA7 #A75C60 #86A75C #5CA7A2
square
#7D5CA7 #A75C60 #86A75C #5CA7A2
split-complementary
#7D5CA7 #A7A25C #60A75C
monochromatic
#423059 #5F4580 #7D5CA7 #9D84BC #BCABD2

Accessibility & contrast

On white

5.30
#7D5CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7D5CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CA7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CA7#FFFFFF#000000##FFFFFF
##7D5CA71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486BAA
Deuteranopia (green-blind)
#506BA5
Tritanopia (blue-blind)
#766979
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d5ca7;
/* rgb */ color: rgb(125, 92, 167);
/* oklch */ color: oklch(54.1% 0.118 303.0);
Tailwind
colors: {
  custom: {
    50: '#a48bc1',
    500: '#7d5ca7',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ca7;
$custom-light: #a48bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ca7",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 266.4,
    "s": 29.88,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54085,
    "c": 0.11821,
    "h": 303
  },
  "luminance": 0.14804
}

Semantic roles & 50–950 ramp

primary
#7D5CA7
secondary
#B1C09F
accent
#C6629A
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7D5CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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