#7E5FBC#7E5FBC

#7E5FBC is a mid, vivid violet. Relative luminance 0.163; OKLCH L 55.9% C 0.141 H 297.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7E5FBC
RGBrgb(126, 95, 188)
HSLhsl(260, 41%, 55%)
HSVhsv(260, 49%, 74%)
CMYKcmyk(33%, 49.5%, 0%, 26.3%)
CIE-LABlab(47.30, 33.08, -44.70)
CIE-LCHlch(47.30, 55.61, 306.50°)
OKLaboklab(55.93% 0.0641 -0.126)
OKLCHoklch(55.93% 0.141 297)
XYZxyz(21.7713, 16.2506, 49.5569)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FBC #9DBC5F
analogous
#5F6EBC #7E5FBC #AC5FBC
triadic
#7E5FBC #BC7E5F #5FBC7E
tetradic
#7E5FBC #BC5F6E #9DBC5F #5FBCAC
square
#7E5FBC #BC5F6E #9DBC5F #5FBCAC
split-complementary
#7E5FBC #BCAC5F #6EBC5F
monochromatic
#452F71 #60419C #7E5FBC #A18ACE #C4B5E0

Accessibility & contrast

On white

4.94
#7E5FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7E5FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FBC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FBC#FFFFFF#000000##FFFFFF
##7E5FBC1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F71BF
Deuteranopia (green-blind)
#466FBA
Tritanopia (blue-blind)
#707185
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5fbc;
/* rgb */ color: rgb(126, 95, 188);
/* oklch */ color: oklch(55.9% 0.141 297.0);
Tailwind
colors: {
  custom: {
    50: '#a68dd1',
    500: '#7e5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fbc;
$custom-light: #a68dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fbc",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 260,
    "s": 40.969,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55925,
    "c": 0.1414,
    "h": 297
  },
  "luminance": 0.16251
}

Semantic roles & 50–950 ramp

primary
#7E5FBC
secondary
#C2CFA8
accent
#D157A8
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7E5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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