#7F5FBF#7F5FBF

#7F5FBF is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.2% C 0.145 H 296.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7F5FBF
RGBrgb(127, 95, 191)
HSLhsl(260, 43%, 56%)
HSVhsv(260, 50%, 75%)
CMYKcmyk(33.5%, 50.3%, 0%, 25.1%)
CIE-LABlab(47.57, 34.13, -46.01)
CIE-LCHlch(47.57, 57.29, 306.57°)
OKLaboklab(56.2% 0.0657 -0.1298)
OKLCHoklch(56.2% 0.145 296.8)
XYZxyz(22.2462, 16.4577, 51.2847)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FBF #9FBF5F
analogous
#5F6FBF #7F5FBF #AF5FBF
triadic
#7F5FBF #BF7F5F #5FBF7F
tetradic
#7F5FBF #BF5F6F #9FBF5F #5FBFAF
square
#7F5FBF #BF5F6F #9FBF5F #5FBFAF
split-complementary
#7F5FBF #BFAF5F #6FBF5F
monochromatic
#462F75 #6040A1 #7F5FBF #A28BD0 #C5B6E2

Accessibility & contrast

On white

4.89
#7F5FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7F5FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5FBF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FBF#FFFFFF#000000##FFFFFF
##7F5FBF1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D71C2
Deuteranopia (green-blind)
#4470BD
Tritanopia (blue-blind)
#717286
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f5fbf;
/* rgb */ color: rgb(127, 95, 191);
/* oklch */ color: oklch(56.2% 0.145 296.8);
Tailwind
colors: {
  custom: {
    50: '#a78dd3',
    500: '#7f5fbf',
    950: '#000000',
  },
}
SCSS
$custom: #7f5fbf;
$custom-light: #a78dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5fbf",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 191
  },
  "hsl": {
    "h": 260,
    "s": 42.857,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56203,
    "c": 0.14548,
    "h": 296.8
  },
  "luminance": 0.16458
}

Semantic roles & 50–950 ramp

primary
#7F5FBF
secondary
#C4D1A9
accent
#D355A9
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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