#7F4BDC#7F4BDC

#7F4BDC is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.1% C 0.210 H 295.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7F4BDC
RGBrgb(127, 75, 220)
HSLhsl(262, 67%, 58%)
HSVhsv(262, 66%, 86%)
CMYKcmyk(42.3%, 65.9%, 0%, 13.7%)
CIE-LABlab(45.24, 52.89, -66.43)
CIE-LCHlch(45.24, 84.91, 308.52°)
OKLaboklab(55.09% 0.0888 -0.1898)
OKLCHoklch(55.09% 0.21 295.1)
XYZxyz(24.1833, 14.7109, 69.2616)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BDC #A8DC4B
analogous
#4B5FDC #7F4BDC #C74BDC
triadic
#7F4BDC #DC7F4B #4BDC7F
tetradic
#7F4BDC #DC4B5F #A8DC4B #4BDCC7
square
#7F4BDC #DC4B5F #A8DC4B #4BDCC7
split-complementary
#7F4BDC #DCC74B #5FDC4B
monochromatic
#461C91 #5F26C4 #7F4BDC #A37EE6 #C8B1F0

Accessibility & contrast

On white

5.33
#7F4BDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7F4BDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BDC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BDC#FFFFFF#000000##FFFFFF
##7F4BDC1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#0069D9
Tritanopia (blue-blind)
#666E8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f4bdc;
/* rgb */ color: rgb(127, 75, 220);
/* oklch */ color: oklch(55.1% 0.210 295.1);
Tailwind
colors: {
  custom: {
    50: '#ab80e8',
    500: '#7f4bdc',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bdc;
$custom-light: #ab80e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bdc",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 220
  },
  "hsl": {
    "h": 261.517,
    "s": 67.442,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55093,
    "c": 0.20953,
    "h": 295.1
  },
  "luminance": 0.14711
}

Semantic roles & 50–950 ramp

primary
#7F4BDC
secondary
#CADEA4
accent
#EA3DAC
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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