#7E5FBB#7E5FBB

#7E5FBB is a mid, vivid violet. Relative luminance 0.162; OKLCH L 55.9% C 0.140 H 297.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7E5FBB
RGBrgb(126, 95, 187)
HSLhsl(260, 40%, 55%)
HSVhsv(260, 49%, 73%)
CMYKcmyk(32.6%, 49.2%, 0%, 26.7%)
CIE-LABlab(47.25, 32.81, -44.21)
CIE-LCHlch(47.25, 55.06, 306.58°)
OKLaboklab(55.87% 0.064 -0.1246)
OKLCHoklch(55.87% 0.14 297.2)
XYZxyz(21.6638, 16.2076, 48.9911)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FBB #9CBB5F
analogous
#5F6EBB #7E5FBB #AC5FBB
triadic
#7E5FBB #BB7E5F #5FBB7E
tetradic
#7E5FBB #BB5F6E #9CBB5F #5FBBAC
square
#7E5FBB #BB5F6E #9CBB5F #5FBBAC
split-complementary
#7E5FBB #BBAC5F #6EBB5F
monochromatic
#453070 #60429B #7E5FBB #A18ACD #C3B5E0

Accessibility & contrast

On white

4.95
#7E5FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7E5FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FBB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FBB#FFFFFF#000000##FFFFFF
##7E5FBB1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F70BE
Deuteranopia (green-blind)
#466FB9
Tritanopia (blue-blind)
#717084
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5fbb;
/* rgb */ color: rgb(126, 95, 187);
/* oklch */ color: oklch(55.9% 0.140 297.2);
Tailwind
colors: {
  custom: {
    50: '#a68dd0',
    500: '#7e5fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fbb;
$custom-light: #a68dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fbb",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 260.217,
    "s": 40.351,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55866,
    "c": 0.14007,
    "h": 297.2
  },
  "luminance": 0.16208
}

Semantic roles & 50–950 ramp

primary
#7E5FBB
secondary
#C1CEA8
accent
#D058A8
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7E5FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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