#7F5BE7#7F5BE7

#7F5BE7 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.2% C 0.202 H 290.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F5BE7
RGBrgb(127, 91, 231)
HSLhsl(255, 74%, 63%)
HSVhsv(255, 61%, 91%)
CMYKcmyk(45%, 60.6%, 0%, 9.4%)
CIE-LABlab(49.21, 47.27, -66.22)
CIE-LCHlch(49.21, 81.36, 305.52°)
OKLaboklab(58.22% 0.071 -0.1892)
OKLCHoklch(58.22% 0.202 290.6)
XYZxyz(26.9132, 17.7628, 77.5963)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BE7 #C3E75B
analogous
#5B7DE7 #7F5BE7 #C55BE7
triadic
#7F5BE7 #E77F5B #5BE77F
tetradic
#7F5BE7 #E75B7D #C3E75B #5BE7C5
square
#7F5BE7 #E75B7D #C3E75B #5BE7C5
split-complementary
#7F5BE7 #E7C55B #7DE75B
monochromatic
#4019AE #5526DF #7F5BE7 #A990EF #D2C6F7

Accessibility & contrast

On white

4.61
#7F5BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7F5BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BE7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BE7#FFFFFF#000000##FFFFFF
##7F5BE71.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EC
Deuteranopia (green-blind)
#0072E4
Tritanopia (blue-blind)
#5F7B98
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f5be7;
/* rgb */ color: rgb(127, 91, 231);
/* oklch */ color: oklch(58.2% 0.202 290.6);
Tailwind
colors: {
  custom: {
    50: '#ab8bef',
    500: '#7f5be7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5be7;
$custom-light: #ab8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5be7",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 255.429,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58217,
    "c": 0.20207,
    "h": 290.6
  },
  "luminance": 0.17764
}

Semantic roles & 50–950 ramp

primary
#7F5BE7
secondary
#DBE8B6
accent
#D70FA3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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