#7D5EA2#7D5EA2

#7D5EA2 is a mid, moderate violet. Relative luminance 0.150; OKLCH L 54.2% C 0.108 H 304.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7D5EA2
RGBrgb(125, 94, 162)
HSLhsl(267, 27%, 50%)
HSVhsv(267, 42%, 64%)
CMYKcmyk(22.8%, 42%, 0%, 36.5%)
CIE-LABlab(45.60, 26.74, -32.18)
CIE-LCHlch(45.60, 41.84, 309.73°)
OKLaboklab(54.18% 0.0605 -0.0896)
OKLCHoklch(54.18% 0.108 304)
XYZxyz(18.9804, 14.9741, 36.0658)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EA2 #83A25E
analogous
#5E61A2 #7D5EA2 #9F5EA2
triadic
#7D5EA2 #A27D5E #5EA27D
tetradic
#7D5EA2 #A25E61 #83A25E #5EA29F
square
#7D5EA2 #A25E61 #83A25E #5EA29F
split-complementary
#7D5EA2 #A29F5E #61A25E
monochromatic
#413155 #5F477B #7D5EA2 #9C85B8 #BCACCF

Accessibility & contrast

On white

5.26
#7D5EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7D5EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5EA2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EA2#FFFFFF#000000##FFFFFF
##7D5EA21.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA5
Deuteranopia (green-blind)
#546CA0
Tritanopia (blue-blind)
#776978
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7d5ea2;
/* rgb */ color: rgb(125, 94, 162);
/* oklch */ color: oklch(54.2% 0.108 304.0);
Tailwind
colors: {
  custom: {
    50: '#a48cbe',
    500: '#7d5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ea2;
$custom-light: #a48cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ea2",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 267.353,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54179,
    "c": 0.10809,
    "h": 304
  },
  "luminance": 0.14974
}

Semantic roles & 50–950 ramp

primary
#7D5EA2
secondary
#AFBD9F
accent
#C36598
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7D5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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