#7F5BEC#7F5BEC

#7F5BEC is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.6% C 0.208 H 289.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F5BEC
RGBrgb(127, 91, 236)
HSLhsl(255, 79%, 64%)
HSVhsv(255, 61%, 93%)
CMYKcmyk(46.2%, 61.4%, 0%, 7.5%)
CIE-LABlab(49.56, 48.65, -68.47)
CIE-LCHlch(49.56, 83.99, 305.40°)
OKLaboklab(58.58% 0.0707 -0.1958)
OKLCHoklch(58.58% 0.208 289.9)
XYZxyz(27.6295, 18.0493, 81.3687)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BEC #C8EC5B
analogous
#5B80EC #7F5BEC #C85BEC
triadic
#7F5BEC #EC7F5B #5BEC7F
tetradic
#7F5BEC #EC5B80 #C8EC5B #5BECC8
square
#7F5BEC #EC5B80 #C8EC5B #5BECC8
split-complementary
#7F5BEC #ECC85B #80EC5B
monochromatic
#3D15B7 #5424E6 #7F5BEC #AA92F2 #D5C9F9

Accessibility & contrast

On white

4.56
#7F5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7F5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5BEC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BEC#FFFFFF#000000##000000
##7F5BEC1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#0072E9
Tritanopia (blue-blind)
#5D7D9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5bec;
/* rgb */ color: rgb(127, 91, 236);
/* oklch */ color: oklch(58.6% 0.208 289.9);
Tailwind
colors: {
  custom: {
    50: '#ac8bf3',
    500: '#7f5bec',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bec;
$custom-light: #ac8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bec",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 254.897,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58581,
    "c": 0.20817,
    "h": 289.9
  },
  "luminance": 0.1805
}

Semantic roles & 50–950 ramp

primary
#7F5BEC
secondary
#DEEBB8
accent
#DC0AA7
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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