#7F5BCA#7F5BCA

#7F5BCA is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.166 H 295.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7F5BCA
RGBrgb(127, 91, 202)
HSLhsl(259, 51%, 57%)
HSVhsv(259, 55%, 79%)
CMYKcmyk(37.1%, 55%, 0%, 20.8%)
CIE-LABlab(47.31, 39.37, -52.77)
CIE-LCHlch(47.31, 65.83, 306.72°)
OKLaboklab(56.22% 0.0715 -0.1496)
OKLCHoklch(56.22% 0.166 295.5)
XYZxyz(23.1514, 16.2580, 57.7840)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BCA #A6CA5B
analogous
#5B6FCA #7F5BCA #B65BCA
triadic
#7F5BCA #CA7F5B #5BCA7F
tetradic
#7F5BCA #CA5B6F #A6CA5B #5BCAB6
square
#7F5BCA #CA5B6F #A6CA5B #5BCAB6
split-complementary
#7F5BCA #CAB65B #6FCA5B
monochromatic
#462A81 #5F39AF #7F5BCA #A389D9 #C7B8E8

Accessibility & contrast

On white

4.94
#7F5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7F5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BCA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BCA#FFFFFF#000000##FFFFFF
##7F5BCA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2871CE
Deuteranopia (green-blind)
#336FC7
Tritanopia (blue-blind)
#6D728A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f5bca;
/* rgb */ color: rgb(127, 91, 202);
/* oklch */ color: oklch(56.2% 0.166 295.5);
Tailwind
colors: {
  custom: {
    50: '#a88adb',
    500: '#7f5bca',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bca;
$custom-light: #a88adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bca",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 259.459,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56221,
    "c": 0.16583,
    "h": 295.5
  },
  "luminance": 0.16258
}

Semantic roles & 50–950 ramp

primary
#7F5BCA
secondary
#C8D7AA
accent
#DB4DAD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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