#7F4BD8#7F4BD8

#7F4BD8 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.8% C 0.205 H 295.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7F4BD8
RGBrgb(127, 75, 216)
HSLhsl(262, 64%, 57%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41.2%, 65.3%, 0%, 15.3%)
CIE-LABlab(44.94, 51.84, -64.62)
CIE-LCHlch(44.94, 82.84, 308.74°)
OKLaboklab(54.79% 0.0893 -0.1844)
OKLCHoklch(54.79% 0.205 295.8)
XYZxyz(23.6599, 14.5015, 66.5049)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BD8 #A4D84B
analogous
#4B5DD8 #7F4BD8 #C64BD8
triadic
#7F4BD8 #D87F4B #4BD87F
tetradic
#7F4BD8 #D84B5D #A4D84B #4BD8C6
square
#7F4BD8 #D84B5D #A4D84B #4BD8C6
split-complementary
#7F4BD8 #D8C64B #5DD84B
monochromatic
#461E8B #5F29BD #7F4BD8 #A37DE3 #C7B0EE

Accessibility & contrast

On white

5.38
#7F4BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7F4BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BD8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BD8#FFFFFF#000000##FFFFFF
##7F4BD81.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#686C8B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4bd8;
/* rgb */ color: rgb(127, 75, 216);
/* oklch */ color: oklch(54.8% 0.205 295.8);
Tailwind
colors: {
  custom: {
    50: '#aa80e5',
    500: '#7f4bd8',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bd8;
$custom-light: #aa80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bd8",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 262.128,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54791,
    "c": 0.20493,
    "h": 295.8
  },
  "luminance": 0.14502
}

Semantic roles & 50–950 ramp

primary
#7F4BD8
secondary
#C7DCA3
accent
#E740AA
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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