#7F4BE4#7F4BE4

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

Color values

HEX#7F4BE4
RGBrgb(127, 75, 228)
HSLhsl(260, 74%, 59%)
HSVhsv(260, 67%, 89%)
CMYKcmyk(44.3%, 67.1%, 0%, 10.6%)
CIE-LABlab(45.83, 54.98, -70.00)
CIE-LCHlch(45.83, 89.02, 308.15°)
OKLaboklab(55.71% 0.0877 -0.2003)
OKLCHoklch(55.71% 0.219 293.7)
XYZxyz(25.2682, 15.1449, 74.9757)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BE4 #B0E44B
analogous
#4B64E4 #7F4BE4 #CB4BE4
triadic
#7F4BE4 #E47F4B #4BE47F
tetradic
#7F4BE4 #E44B64 #B0E44B #4BE4CB
square
#7F4BE4 #E44B64 #B0E44B #4BE4CB
split-complementary
#7F4BE4 #E4CB4B #64E44B
monochromatic
#45189D #5C20D2 #7F4BE4 #A580EC #CBB5F4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F4BE4#FFFFFF#000000##FFFFFF
##7F4BE41.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)
#006EE9
Deuteranopia (green-blind)
#006AE1
Tritanopia (blue-blind)
#627092
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4be4;
/* rgb */ color: rgb(127, 75, 228);
/* oklch */ color: oklch(55.7% 0.219 293.7);
Tailwind
colors: {
  custom: {
    50: '#ac81ee',
    500: '#7f4be4',
    950: '#000000',
  },
}
SCSS
$custom: #7f4be4;
$custom-light: #ac81ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4be4",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 228
  },
  "hsl": {
    "h": 260.392,
    "s": 73.913,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55708,
    "c": 0.21867,
    "h": 293.7
  },
  "luminance": 0.15146
}

Semantic roles & 50–950 ramp

primary
#7F4BE4
secondary
#CFE3A8
accent
#F137B2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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