#7F4FDB#7F4FDB

#7F4FDB is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.6% C 0.203 H 294.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7F4FDB
RGBrgb(127, 79, 219)
HSLhsl(261, 66%, 58%)
HSVhsv(261, 64%, 86%)
CMYKcmyk(42%, 63.9%, 0%, 14.1%)
CIE-LABlab(45.93, 50.53, -64.73)
CIE-LCHlch(45.93, 82.12, 307.98°)
OKLaboklab(55.57% 0.0848 -0.1848)
OKLCHoklch(55.57% 0.203 294.6)
XYZxyz(24.3311, 15.2179, 68.6595)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FDB #ABDB4F
analogous
#4F65DB #7F4FDB #C54FDB
triadic
#7F4FDB #DB7F4F #4FDB7F
tetradic
#7F4FDB #DB4F65 #ABDB4F #4FDBC5
square
#7F4FDB #DB4F65 #ABDB4F #4FDBC5
split-complementary
#7F4FDB #DBC54F #65DB4F
monochromatic
#461E92 #5E28C5 #7F4FDB #A482E5 #C9B5F0

Accessibility & contrast

On white

5.19
#7F4FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7F4FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FDB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FDB#FFFFFF#000000##FFFFFF
##7F4FDB1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#66708E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4fdb;
/* rgb */ color: rgb(127, 79, 219);
/* oklch */ color: oklch(55.6% 0.203 294.6);
Tailwind
colors: {
  custom: {
    50: '#ab83e7',
    500: '#7f4fdb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fdb;
$custom-light: #ab83e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fdb",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 260.571,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55572,
    "c": 0.2033,
    "h": 294.6
  },
  "luminance": 0.15218
}

Semantic roles & 50–950 ramp

primary
#7F4FDB
secondary
#CCDFA7
accent
#E93FAF
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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