#7F5BEE#7F5BEE

#7F5BEE is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.7% C 0.211 H 289.6°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7F5BEE
RGBrgb(127, 91, 238)
HSLhsl(255, 81%, 65%)
HSVhsv(255, 62%, 93%)
CMYKcmyk(46.6%, 61.8%, 0%, 6.7%)
CIE-LABlab(49.70, 49.21, -69.36)
CIE-LCHlch(49.70, 85.04, 305.35°)
OKLaboklab(58.73% 0.0706 -0.1984)
OKLCHoklch(58.73% 0.211 289.6)
XYZxyz(27.9217, 18.1662, 82.9076)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BEE #CAEE5B
analogous
#5B81EE #7F5BEE #C95BEE
triadic
#7F5BEE #EE7F5B #5BEE7F
tetradic
#7F5BEE #EE5B81 #CAEE5B #5BEEC9
square
#7F5BEE #EE5B81 #CAEE5B #5BEEC9
split-complementary
#7F5BEE #EEC95B #81EE5B
monochromatic
#3C13BB #5424E8 #7F5BEE #AA92F4 #D6CAF9

Accessibility & contrast

On white

4.53
#7F5BEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7F5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5BEE
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BEE#FFFFFF#000000##000000
##7F5BEE1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F3
Deuteranopia (green-blind)
#0073EB
Tritanopia (blue-blind)
#5B7E9C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5bee;
/* rgb */ color: rgb(127, 91, 238);
/* oklch */ color: oklch(58.7% 0.211 289.6);
Tailwind
colors: {
  custom: {
    50: '#ac8bf4',
    500: '#7f5bee',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bee;
$custom-light: #ac8bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bee",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 254.694,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58729,
    "c": 0.21059,
    "h": 289.6
  },
  "luminance": 0.18167
}

Semantic roles & 50–950 ramp

primary
#7F5BEE
secondary
#DFECB9
accent
#DE08A9
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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