#7F5BC7#7F5BC7

#7F5BC7 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.0% C 0.162 H 296.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7F5BC7
RGBrgb(127, 91, 199)
HSLhsl(260, 49%, 57%)
HSVhsv(260, 54%, 78%)
CMYKcmyk(36.2%, 54.3%, 0%, 22%)
CIE-LABlab(47.13, 38.57, -51.33)
CIE-LCHlch(47.13, 64.21, 306.92°)
OKLaboklab(56.03% 0.0714 -0.1454)
OKLCHoklch(56.03% 0.162 296.1)
XYZxyz(22.7997, 16.1173, 55.9315)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BC7 #A3C75B
analogous
#5B6DC7 #7F5BC7 #B55BC7
triadic
#7F5BC7 #C77F5B #5BC77F
tetradic
#7F5BC7 #C75B6D #A3C75B #5BC7B5
square
#7F5BC7 #C75B6D #A3C75B #5BC7B5
split-complementary
#7F5BC7 #C7B55B #6DC75B
monochromatic
#462B7D #603AAB #7F5BC7 #A389D7 #C6B6E6

Accessibility & contrast

On white

4.97
#7F5BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7F5BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BC7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BC7#FFFFFF#000000##FFFFFF
##7F5BC71.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C70CB
Deuteranopia (green-blind)
#376EC5
Tritanopia (blue-blind)
#6E7188
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f5bc7;
/* rgb */ color: rgb(127, 91, 199);
/* oklch */ color: oklch(56.0% 0.162 296.1);
Tailwind
colors: {
  custom: {
    50: '#a88ad9',
    500: '#7f5bc7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bc7;
$custom-light: #a88ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bc7",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 260,
    "s": 49.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56027,
    "c": 0.162,
    "h": 296.1
  },
  "luminance": 0.16118
}

Semantic roles & 50–950 ramp

primary
#7F5BC7
secondary
#C6D5A9
accent
#D94FAB
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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