#7F4BD2#7F4BD2

#7F4BD2 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.3% C 0.198 H 297.0°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7F4BD2
RGBrgb(127, 75, 210)
HSLhsl(263, 60%, 56%)
HSVhsv(263, 64%, 82%)
CMYKcmyk(39.5%, 64.3%, 0%, 17.6%)
CIE-LABlab(44.51, 50.28, -61.88)
CIE-LCHlch(44.51, 79.73, 309.10°)
OKLaboklab(54.35% 0.09 -0.1764)
OKLCHoklch(54.35% 0.198 297)
XYZxyz(22.8983, 14.1969, 62.4941)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BD2 #9ED24B
analogous
#4B5AD2 #7F4BD2 #C24BD2
triadic
#7F4BD2 #D27F4B #4BD27F
tetradic
#7F4BD2 #D24B5A #9ED24B #4BD2C2
square
#7F4BD2 #D24B5A #9ED24B #4BD2C2
split-complementary
#7F4BD2 #D2C24B #5AD24B
monochromatic
#462182 #602DB3 #7F4BD2 #A27CDE #C5ADEA

Accessibility & contrast

On white

5.47
#7F4BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7F4BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BD2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BD2#FFFFFF#000000##FFFFFF
##7F4BD21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#6B6A88
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f4bd2;
/* rgb */ color: rgb(127, 75, 210);
/* oklch */ color: oklch(54.3% 0.198 297.0);
Tailwind
colors: {
  custom: {
    50: '#aa80e1',
    500: '#7f4bd2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bd2;
$custom-light: #aa80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bd2",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 263.111,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54346,
    "c": 0.198,
    "h": 297
  },
  "luminance": 0.14197
}

Semantic roles & 50–950 ramp

primary
#7F4BD2
secondary
#C3D8A0
accent
#E345A6
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F4BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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