#7F5BE3#7F5BE3

#7F5BE3 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.9% C 0.197 H 291.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7F5BE3
RGBrgb(127, 91, 227)
HSLhsl(256, 71%, 62%)
HSVhsv(256, 60%, 89%)
CMYKcmyk(44.1%, 59.9%, 0%, 11%)
CIE-LABlab(48.93, 46.16, -64.41)
CIE-LCHlch(48.93, 79.24, 305.63°)
OKLaboklab(57.93% 0.0712 -0.1838)
OKLCHoklch(57.93% 0.197 291.2)
XYZxyz(26.3548, 17.5394, 74.6550)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BE3 #BFE35B
analogous
#5B7BE3 #7F5BE3 #C35BE3
triadic
#7F5BE3 #E37F5B #5BE37F
tetradic
#7F5BE3 #E35B7B #BFE35B #5BE3C3
square
#7F5BE3 #E35B7B #BFE35B #5BE3C3
split-complementary
#7F5BE3 #E3C35B #7BE35B
monochromatic
#411DA7 #5627DA #7F5BE3 #A88FEC #D1C4F5

Accessibility & contrast

On white

4.66
#7F5BE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7F5BE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BE3
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BE3#FFFFFF#000000##FFFFFF
##7F5BE31.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#627A96
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5be3;
/* rgb */ color: rgb(127, 91, 227);
/* oklch */ color: oklch(57.9% 0.197 291.2);
Tailwind
colors: {
  custom: {
    50: '#ab8bed',
    500: '#7f5be3',
    950: '#000000',
  },
}
SCSS
$custom: #7f5be3;
$custom-light: #ab8bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5be3",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 227
  },
  "hsl": {
    "h": 255.882,
    "s": 70.833,
    "l": 62.353
  },
  "oklch": {
    "l": 0.5793,
    "c": 0.19716,
    "h": 291.2
  },
  "luminance": 0.1754
}

Semantic roles & 50–950 ramp

primary
#7F5BE3
secondary
#D9E6B4
accent
#D313A0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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