#7E5FA2#7E5FA2

#7E5FA2 is a mid, moderate violet. Relative luminance 0.152; OKLCH L 54.5% C 0.107 H 304.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7E5FA2
RGBrgb(126, 95, 162)
HSLhsl(268, 26%, 50%)
HSVhsv(268, 41%, 64%)
CMYKcmyk(22.2%, 41.4%, 0%, 36.5%)
CIE-LABlab(45.95, 26.45, -31.62)
CIE-LCHlch(45.95, 41.23, 309.91°)
OKLaboklab(54.47% 0.0603 -0.088)
OKLCHoklch(54.47% 0.107 304.4)
XYZxyz(19.2166, 15.2287, 36.1025)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FA2 #83A25F
analogous
#5F61A2 #7E5FA2 #9F5FA2
triadic
#7E5FA2 #A27E5F #5FA27E
tetradic
#7E5FA2 #A25F61 #83A25F #5FA29F
square
#7E5FA2 #A25F61 #83A25F #5FA29F
split-complementary
#7E5FA2 #A29F5F #61A25F
monochromatic
#423155 #60487C #7E5FA2 #9D86B8 #BCACCF

Accessibility & contrast

On white

5.19
#7E5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7E5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FA2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FA2#FFFFFF#000000##FFFFFF
##7E5FA21.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6CA5
Deuteranopia (green-blind)
#566DA0
Tritanopia (blue-blind)
#786A79
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e5fa2;
/* rgb */ color: rgb(126, 95, 162);
/* oklch */ color: oklch(54.5% 0.107 304.4);
Tailwind
colors: {
  custom: {
    50: '#a58dbe',
    500: '#7e5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fa2;
$custom-light: #a58dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fa2",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 267.761,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54465,
    "c": 0.10662,
    "h": 304.4
  },
  "luminance": 0.15229
}

Semantic roles & 50–950 ramp

primary
#7E5FA2
secondary
#B0BD9F
accent
#C36597
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7E5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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