#7D5397#7D5397

#7D5397 is a mid, moderate violet. Relative luminance 0.128; OKLCH L 51.6% C 0.113 H 311.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7D5397
RGBrgb(125, 83, 151)
HSLhsl(277, 29%, 46%)
HSVhsv(277, 45%, 59%)
CMYKcmyk(17.2%, 45%, 0%, 40.8%)
CIE-LABlab(42.43, 30.60, -30.60)
CIE-LCHlch(42.43, 43.27, 315.00°)
OKLaboklab(51.62% 0.075 -0.085)
OKLCHoklch(51.62% 0.113 311.4)
XYZxyz(17.1356, 12.7812, 30.8365)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5397 #6D9753
analogous
#5B5397 #7D5397 #97538F
triadic
#7D5397 #977D53 #53977D
tetradic
#7D5397 #975B53 #6D9753 #538F97
square
#7D5397 #975B53 #6D9753 #538F97
split-complementary
#7D5397 #8F9753 #53975B
monochromatic
#3C2848 #5C3D70 #7D5397 #9B74B3 #B79CC9

Accessibility & contrast

On white

5.91
#7D5397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7D5397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5397
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5397#FFFFFF#000000##FFFFFF
##7D53971.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456299
Deuteranopia (green-blind)
#506595
Tritanopia (blue-blind)
#7A5D6E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d5397;
/* rgb */ color: rgb(125, 83, 151);
/* oklch */ color: oklch(51.6% 0.113 311.4);
Tailwind
colors: {
  custom: {
    50: '#a484b6',
    500: '#7d5397',
    950: '#000000',
  },
}
SCSS
$custom: #7d5397;
$custom-light: #a484b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5397",
  "rgb": {
    "r": 125,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 277.059,
    "s": 29.06,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51621,
    "c": 0.11331,
    "h": 311.4
  },
  "luminance": 0.12781
}

Semantic roles & 50–950 ramp

primary
#7D5397
secondary
#9EB690
accent
#C56288
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #7D5397

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

Preview Lab → · Contrast checker → · Palette generator →

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