#7F4DDF#7F4DDF

#7F4DDF is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.6% C 0.210 H 294.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7F4DDF
RGBrgb(127, 77, 223)
HSLhsl(261, 70%, 59%)
HSVhsv(261, 65%, 87%)
CMYKcmyk(43%, 65.5%, 0%, 12.5%)
CIE-LABlab(45.83, 52.64, -67.16)
CIE-LCHlch(45.83, 85.33, 308.09°)
OKLaboklab(55.59% 0.0864 -0.1919)
OKLCHoklch(55.59% 0.21 294.2)
XYZxyz(24.7220, 15.1468, 71.4188)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DDF #ADDF4D
analogous
#4D64DF #7F4DDF #C84DDF
triadic
#7F4DDF #DF7F4D #4DDF7F
tetradic
#7F4DDF #DF4D64 #ADDF4D #4DDFC8
square
#7F4DDF #DF4D64 #ADDF4D #4DDFC8
split-complementary
#7F4DDF #DFC84D #64DF4D
monochromatic
#451B97 #5D24CA #7F4DDF #A481E8 #CAB5F2

Accessibility & contrast

On white

5.21
#7F4DDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7F4DDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DDF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DDF#FFFFFF#000000##FFFFFF
##7F4DDF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#006ADC
Tritanopia (blue-blind)
#65708F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4ddf;
/* rgb */ color: rgb(127, 77, 223);
/* oklch */ color: oklch(55.6% 0.210 294.2);
Tailwind
colors: {
  custom: {
    50: '#ab82ea',
    500: '#7f4ddf',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ddf;
$custom-light: #ab82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ddf",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 223
  },
  "hsl": {
    "h": 260.548,
    "s": 69.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55593,
    "c": 0.21049,
    "h": 294.2
  },
  "luminance": 0.15147
}

Semantic roles & 50–950 ramp

primary
#7F4DDF
secondary
#CDE1A7
accent
#EC3BB0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4DDF

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

Preview Lab → · Contrast checker → · Palette generator →

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