#7F5BDB#7F5BDB

#7F5BDB is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.4% C 0.187 H 292.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7F5BDB
RGBrgb(127, 91, 219)
HSLhsl(257, 64%, 61%)
HSVhsv(257, 58%, 86%)
CMYKcmyk(42%, 58.4%, 0%, 14.1%)
CIE-LABlab(48.40, 43.97, -60.74)
CIE-LCHlch(48.40, 74.98, 305.90°)
OKLaboklab(57.37% 0.0715 -0.1731)
OKLCHoklch(57.37% 0.187 292.5)
XYZxyz(25.2762, 17.1079, 68.9745)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BDB #B7DB5B
analogous
#5B77DB #7F5BDB #BF5BDB
triadic
#7F5BDB #DB7F5B #5BDB7F
tetradic
#7F5BDB #DB5B77 #B7DB5B #5BDBBF
square
#7F5BDB #DB5B77 #B7DB5B #5BDBBF
split-complementary
#7F5BDB #DBBF5B #77DB5B
monochromatic
#44229A #5A2DCC #7F5BDB #A68DE6 #CDBFF1

Accessibility & contrast

On white

4.75
#7F5BDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7F5BDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BDB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BDB#FFFFFF#000000##FFFFFF
##7F5BDB1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#1370D8
Tritanopia (blue-blind)
#667792
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f5bdb;
/* rgb */ color: rgb(127, 91, 219);
/* oklch */ color: oklch(57.4% 0.187 292.5);
Tailwind
colors: {
  custom: {
    50: '#aa8be7',
    500: '#7f5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bdb;
$custom-light: #aa8be7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bdb",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 256.875,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.57366,
    "c": 0.18726,
    "h": 292.5
  },
  "luminance": 0.17109
}

Semantic roles & 50–950 ramp

primary
#7F5BDB
secondary
#D4E1B1
accent
#CC1A9A
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7F5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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