#7E5FB9#7E5FB9

#7E5FB9 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.7% C 0.137 H 297.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7E5FB9
RGBrgb(126, 95, 185)
HSLhsl(261, 39%, 55%)
HSVhsv(261, 49%, 73%)
CMYKcmyk(31.9%, 48.6%, 0%, 27.5%)
CIE-LABlab(47.13, 32.29, -43.23)
CIE-LCHlch(47.13, 53.95, 306.76°)
OKLaboklab(55.75% 0.0638 -0.1217)
OKLCHoklch(55.75% 0.137 297.7)
XYZxyz(21.4512, 16.1226, 47.8714)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FB9 #9AB95F
analogous
#5F6DB9 #7E5FB9 #AB5FB9
triadic
#7E5FB9 #B97E5F #5FB97E
tetradic
#7E5FB9 #B95F6D #9AB95F #5FB9AB
square
#7E5FB9 #B95F6D #9AB95F #5FB9AB
split-complementary
#7E5FB9 #B9AB5F #6DB95F
monochromatic
#45306E #604398 #7E5FB9 #A08ACC #C3B4DE

Accessibility & contrast

On white

4.97
#7E5FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E5FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FB9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FB9#FFFFFF#000000##FFFFFF
##7E5FB91.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4170BC
Deuteranopia (green-blind)
#486FB7
Tritanopia (blue-blind)
#717083
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5fb9;
/* rgb */ color: rgb(126, 95, 185);
/* oklch */ color: oklch(55.7% 0.137 297.7);
Tailwind
colors: {
  custom: {
    50: '#a68dce',
    500: '#7e5fb9',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fb9;
$custom-light: #a68dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fb9",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 260.667,
    "s": 39.13,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55747,
    "c": 0.13741,
    "h": 297.7
  },
  "luminance": 0.16123
}

Semantic roles & 50–950 ramp

primary
#7E5FB9
secondary
#C0CDA7
accent
#CF59A6
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7E5FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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