#7F4BD7#7F4BD7

#7F4BD7 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.7% C 0.204 H 296.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7F4BD7
RGBrgb(127, 75, 215)
HSLhsl(262, 64%, 57%)
HSVhsv(262, 65%, 84%)
CMYKcmyk(40.9%, 65.1%, 0%, 15.7%)
CIE-LABlab(44.87, 51.58, -64.16)
CIE-LCHlch(44.87, 82.32, 308.80°)
OKLaboklab(54.72% 0.0894 -0.1831)
OKLCHoklch(54.72% 0.204 296)
XYZxyz(23.5310, 14.4500, 65.8262)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BD7 #A3D74B
analogous
#4B5DD7 #7F4BD7 #C54BD7
triadic
#7F4BD7 #D77F4B #4BD77F
tetradic
#7F4BD7 #D74B5D #A3D74B #4BD7C5
square
#7F4BD7 #D74B5D #A3D74B #4BD7C5
split-complementary
#7F4BD7 #D7C54B #5DD74B
monochromatic
#461E89 #602ABB #7F4BD7 #A37DE2 #C6AFED

Accessibility & contrast

On white

5.40
#7F4BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7F4BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BD7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BD7#FFFFFF#000000##FFFFFF
##7F4BD71.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#686C8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4bd7;
/* rgb */ color: rgb(127, 75, 215);
/* oklch */ color: oklch(54.7% 0.204 296.0);
Tailwind
colors: {
  custom: {
    50: '#aa80e4',
    500: '#7f4bd7',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bd7;
$custom-light: #aa80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bd7",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 262.286,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54716,
    "c": 0.20378,
    "h": 296
  },
  "luminance": 0.1445
}

Semantic roles & 50–950 ramp

primary
#7F4BD7
secondary
#C6DBA2
accent
#E741A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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