#7E5FB2#7E5FB2

#7E5FB2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.3% C 0.128 H 299.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E5FB2
RGBrgb(126, 95, 178)
HSLhsl(262, 35%, 54%)
HSVhsv(262, 47%, 70%)
CMYKcmyk(29.2%, 46.6%, 0%, 30.2%)
CIE-LABlab(46.76, 30.47, -39.75)
CIE-LCHlch(46.76, 50.08, 307.47°)
OKLaboklab(55.34% 0.0629 -0.1115)
OKLCHoklch(55.34% 0.128 299.4)
XYZxyz(20.7304, 15.8343, 44.0750)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FB2 #93B25F
analogous
#5F69B2 #7E5FB2 #A75FB2
triadic
#7E5FB2 #B27E5F #5FB27E
tetradic
#7E5FB2 #B25F69 #93B25F #5FB2A7
square
#7E5FB2 #B25F69 #93B25F #5FB2A7
split-complementary
#7E5FB2 #B2A75F #69B25F
monochromatic
#453166 #61458F #7E5FB2 #9F88C6 #C1B2DA

Accessibility & contrast

On white

5.04
#7E5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7E5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FB2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FB2#FFFFFF#000000##FFFFFF
##7E5FB21.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466FB5
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#746E80
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e5fb2;
/* rgb */ color: rgb(126, 95, 178);
/* oklch */ color: oklch(55.3% 0.128 299.4);
Tailwind
colors: {
  custom: {
    50: '#a58dc9',
    500: '#7e5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fb2;
$custom-light: #a58dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fb2",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 262.41,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5534,
    "c": 0.12808,
    "h": 299.4
  },
  "luminance": 0.15834
}

Semantic roles & 50–950 ramp

primary
#7E5FB2
secondary
#BBC8A5
accent
#CB5DA2
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7E5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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