#7E5FC0#7E5FC0

#7E5FC0 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.2% C 0.147 H 296.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7E5FC0
RGBrgb(126, 95, 192)
HSLhsl(259, 43%, 56%)
HSVhsv(259, 51%, 75%)
CMYKcmyk(34.4%, 50.5%, 0%, 24.7%)
CIE-LABlab(47.53, 34.13, -46.66)
CIE-LCHlch(47.53, 57.81, 306.19°)
OKLaboklab(56.17% 0.0645 -0.1317)
OKLCHoklch(56.17% 0.147 296.1)
XYZxyz(22.2084, 16.4255, 51.8593)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FC0 #A1C05F
analogous
#5F71C0 #7E5FC0 #AF5FC0
triadic
#7E5FC0 #C07E5F #5FC07E
tetradic
#7E5FC0 #C05F71 #A1C05F #5FC0AF
square
#7E5FC0 #C05F71 #A1C05F #5FC0AF
split-complementary
#7E5FC0 #C0AF5F #71C05F
monochromatic
#452F76 #5F40A2 #7E5FC0 #A18BD1 #C5B7E3

Accessibility & contrast

On white

4.90
#7E5FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7E5FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FC0
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FC0#FFFFFF#000000##FFFFFF
##7E5FC01.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B71C3
Deuteranopia (green-blind)
#426FBE
Tritanopia (blue-blind)
#6F7286
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e5fc0;
/* rgb */ color: rgb(126, 95, 192);
/* oklch */ color: oklch(56.2% 0.147 296.1);
Tailwind
colors: {
  custom: {
    50: '#a68dd3',
    500: '#7e5fc0',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fc0;
$custom-light: #a68dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fc0",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 192
  },
  "hsl": {
    "h": 259.175,
    "s": 43.498,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56167,
    "c": 0.14668,
    "h": 296.1
  },
  "luminance": 0.16426
}

Semantic roles & 50–950 ramp

primary
#7E5FC0
secondary
#C5D1A9
accent
#D355AB
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7E5FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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