#7F5BDF#7F5BDF

#7F5BDF is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.192 H 291.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F5BDF
RGBrgb(127, 91, 223)
HSLhsl(256, 67%, 62%)
HSVhsv(256, 59%, 87%)
CMYKcmyk(43%, 59.2%, 0%, 12.5%)
CIE-LABlab(48.66, 45.06, -62.58)
CIE-LCHlch(48.66, 77.12, 305.76°)
OKLaboklab(57.65% 0.0714 -0.1785)
OKLCHoklch(57.65% 0.192 291.8)
XYZxyz(25.8091, 17.3211, 71.7812)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BDF #BBDF5B
analogous
#5B79DF #7F5BDF #C15BDF
triadic
#7F5BDF #DF7F5B #5BDF7F
tetradic
#7F5BDF #DF5B79 #BBDF5B #5BDFC1
square
#7F5BDF #DF5B79 #BBDF5B #5BDFC1
split-complementary
#7F5BDF #DFC15B #79DF5B
monochromatic
#421FA0 #5829D4 #7F5BDF #A78EE9 #CFC1F3

Accessibility & contrast

On white

4.70
#7F5BDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7F5BDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BDF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BDF#FFFFFF#000000##FFFFFF
##7F5BDF1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E3
Deuteranopia (green-blind)
#0071DC
Tritanopia (blue-blind)
#647994
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5bdf;
/* rgb */ color: rgb(127, 91, 223);
/* oklch */ color: oklch(57.6% 0.192 291.8);
Tailwind
colors: {
  custom: {
    50: '#aa8bea',
    500: '#7f5bdf',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bdf;
$custom-light: #aa8bea;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bdf",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 223
  },
  "hsl": {
    "h": 256.364,
    "s": 67.347,
    "l": 61.569
  },
  "oklch": {
    "l": 0.57646,
    "c": 0.19222,
    "h": 291.8
  },
  "luminance": 0.17322
}

Semantic roles & 50–950 ramp

primary
#7F5BDF
secondary
#D6E3B2
accent
#CF169D
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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