#7F5FBE#7F5FBE

#7F5FBE is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.1% C 0.144 H 297.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F5FBE
RGBrgb(127, 95, 190)
HSLhsl(260, 42%, 56%)
HSVhsv(260, 50%, 75%)
CMYKcmyk(33.2%, 50%, 0%, 25.5%)
CIE-LABlab(47.51, 33.87, -45.52)
CIE-LCHlch(47.51, 56.74, 306.65°)
OKLaboklab(56.14% 0.0656 -0.1284)
OKLCHoklch(56.14% 0.144 297.1)
XYZxyz(22.1366, 16.4139, 50.7071)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FBE #9EBE5F
analogous
#5F6EBE #7F5FBE #AE5FBE
triadic
#7F5FBE #BE7F5F #5FBE7F
tetradic
#7F5FBE #BE5F6E #9EBE5F #5FBEAE
square
#7F5FBE #BE5F6E #9EBE5F #5FBEAE
split-complementary
#7F5FBE #BEAE5F #6EBE5F
monochromatic
#462F74 #60419F #7F5FBE #A28BD0 #C5B6E1

Accessibility & contrast

On white

4.90
#7F5FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7F5FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5FBE
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FBE#FFFFFF#000000##FFFFFF
##7F5FBE1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D71C1
Deuteranopia (green-blind)
#4570BC
Tritanopia (blue-blind)
#717186
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f5fbe;
/* rgb */ color: rgb(127, 95, 190);
/* oklch */ color: oklch(56.1% 0.144 297.1);
Tailwind
colors: {
  custom: {
    50: '#a78dd2',
    500: '#7f5fbe',
    950: '#000000',
  },
}
SCSS
$custom: #7f5fbe;
$custom-light: #a78dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5fbe",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 190
  },
  "hsl": {
    "h": 260.211,
    "s": 42.222,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56143,
    "c": 0.14416,
    "h": 297.1
  },
  "luminance": 0.16414
}

Semantic roles & 50–950 ramp

primary
#7F5FBE
secondary
#C3D0A9
accent
#D256A8
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7F5FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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