#7F5BDA#7F5BDA

#7F5BDA is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.3% C 0.186 H 292.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F5BDA
RGBrgb(127, 91, 218)
HSLhsl(257, 63%, 61%)
HSVhsv(257, 58%, 85%)
CMYKcmyk(41.7%, 58.3%, 0%, 14.5%)
CIE-LABlab(48.33, 43.69, -60.28)
CIE-LCHlch(48.33, 74.45, 305.94°)
OKLaboklab(57.3% 0.0715 -0.1717)
OKLCHoklch(57.3% 0.186 292.6)
XYZxyz(25.1449, 17.0554, 68.2833)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BDA #B6DA5B
analogous
#5B76DA #7F5BDA #BE5BDA
triadic
#7F5BDA #DA7F5B #5BDA7F
tetradic
#7F5BDA #DA5B76 #B6DA5B #5BDABE
square
#7F5BDA #DA5B76 #B6DA5B #5BDABE
split-complementary
#7F5BDA #DABE5B #76DA5B
monochromatic
#442298 #5A2ECA #7F5BDA #A68DE5 #CDBFF1

Accessibility & contrast

On white

4.76
#7F5BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7F5BDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BDA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BDA#FFFFFF#000000##FFFFFF
##7F5BDA1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DE
Deuteranopia (green-blind)
#1670D7
Tritanopia (blue-blind)
#667792
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f5bda;
/* rgb */ color: rgb(127, 91, 218);
/* oklch */ color: oklch(57.3% 0.186 292.6);
Tailwind
colors: {
  custom: {
    50: '#aa8be6',
    500: '#7f5bda',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bda;
$custom-light: #aa8be6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bda",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 257.008,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.57297,
    "c": 0.18601,
    "h": 292.6
  },
  "luminance": 0.17056
}

Semantic roles & 50–950 ramp

primary
#7F5BDA
secondary
#D3E1B0
accent
#CB1B99
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7F5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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