#7F5BEF#7F5BEF

#7F5BEF is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.8% C 0.212 H 289.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F5BEF
RGBrgb(127, 91, 239)
HSLhsl(255, 82%, 65%)
HSVhsv(255, 62%, 94%)
CMYKcmyk(46.9%, 61.9%, 0%, 6.3%)
CIE-LABlab(49.77, 49.48, -69.81)
CIE-LCHlch(49.77, 85.57, 305.33°)
OKLaboklab(58.8% 0.0705 -0.1997)
OKLCHoklch(58.8% 0.212 289.4)
XYZxyz(28.0690, 18.2251, 83.6835)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BEF #CBEF5B
analogous
#5B81EF #7F5BEF #C95BEF
triadic
#7F5BEF #EF7F5B #5BEF7F
tetradic
#7F5BEF #EF5B81 #CBEF5B #5BEFC9
square
#7F5BEF #EF5B81 #CBEF5B #5BEFC9
split-complementary
#7F5BEF #EFC95B #81EF5B
monochromatic
#3C12BD #5323EA #7F5BEF #AB93F4 #D6CBFA

Accessibility & contrast

On white

4.52
#7F5BEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7F5BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5BEF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BEF#FFFFFF#000000##000000
##7F5BEF1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#0073EC
Tritanopia (blue-blind)
#5B7E9D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5bef;
/* rgb */ color: rgb(127, 91, 239);
/* oklch */ color: oklch(58.8% 0.212 289.4);
Tailwind
colors: {
  custom: {
    50: '#ac8bf5',
    500: '#7f5bef',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bef;
$custom-light: #ac8bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bef",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 254.595,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58803,
    "c": 0.2118,
    "h": 289.4
  },
  "luminance": 0.18226
}

Semantic roles & 50–950 ramp

primary
#7F5BEF
secondary
#E0ECBA
accent
#DF07AA
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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