#7F5DBF#7F5DBF

#7F5DBF is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.9% C 0.149 H 297.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7F5DBF
RGBrgb(127, 93, 191)
HSLhsl(261, 43%, 56%)
HSVhsv(261, 51%, 75%)
CMYKcmyk(33.5%, 51.3%, 0%, 25.1%)
CIE-LABlab(47.11, 35.30, -46.74)
CIE-LCHlch(47.11, 58.57, 307.06°)
OKLaboklab(55.86% 0.0683 -0.132)
OKLCHoklch(55.86% 0.149 297.4)
XYZxyz(22.0684, 16.1020, 51.2254)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DBF #9DBF5D
analogous
#5D6CBF #7F5DBF #B05DBF
triadic
#7F5DBF #BF7F5D #5DBF7F
tetradic
#7F5DBF #BF5D6C #9DBF5D #5DBFB0
square
#7F5DBF #BF5D6C #9DBF5D #5DBFB0
split-complementary
#7F5DBF #BFB05D #6CBF5D
monochromatic
#462E74 #613FA0 #7F5DBF #A289D0 #C4B5E2

Accessibility & contrast

On white

4.98
#7F5DBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F5DBF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DBF#FFFFFF#000000##FFFFFF
##7F5DBF1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3970C2
Deuteranopia (green-blind)
#416FBD
Tritanopia (blue-blind)
#717085
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f5dbf;
/* rgb */ color: rgb(127, 93, 191);
/* oklch */ color: oklch(55.9% 0.149 297.4);
Tailwind
colors: {
  custom: {
    50: '#a78cd3',
    500: '#7f5dbf',
    950: '#000000',
  },
}
SCSS
$custom: #7f5dbf;
$custom-light: #a78cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5dbf",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 191
  },
  "hsl": {
    "h": 260.816,
    "s": 43.363,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5586,
    "c": 0.14861,
    "h": 297.4
  },
  "luminance": 0.16102
}

Semantic roles & 50–950 ramp

primary
#7F5DBF
secondary
#C2D0A8
accent
#D355A7
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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