#7F4FF2#7F4FF2

#7F4FF2 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.3% C 0.230 H 290.9°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7F4FF2
RGBrgb(127, 79, 242)
HSLhsl(258, 86%, 63%)
HSVhsv(258, 67%, 95%)
CMYKcmyk(47.5%, 67.4%, 0%, 5.1%)
CIE-LABlab(47.64, 56.67, -74.95)
CIE-LCHlch(47.64, 93.96, 307.09°)
OKLaboklab(57.34% 0.0818 -0.2148)
OKLCHoklch(57.34% 0.23 290.9)
XYZxyz(27.5709, 16.5137, 85.7220)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FF2 #C2F24F
analogous
#4F70F2 #7F4FF2 #D14FF2
triadic
#7F4FF2 #F27F4F #4FF27F
tetradic
#7F4FF2 #F24F70 #C2F24F #4FF2D1
square
#7F4FF2 #F24F70 #C2F24F #4FF2D1
split-complementary
#7F4FF2 #F2D14F #70F24F
monochromatic
#400EB9 #5616EE #7F4FF2 #A888F6 #D2C1FA

Accessibility & contrast

On white

4.88
#7F4FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7F4FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FF2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FF2#FFFFFF#000000##FFFFFF
##7F4FF21.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#5A789A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f4ff2;
/* rgb */ color: rgb(127, 79, 242);
/* oklch */ color: oklch(57.3% 0.230 290.9);
Tailwind
colors: {
  custom: {
    50: '#ad84f7',
    500: '#7f4ff2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ff2;
$custom-light: #ad84f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ff2",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 257.669,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57337,
    "c": 0.22989,
    "h": 290.9
  },
  "luminance": 0.16515
}

Semantic roles & 50–950 ramp

primary
#7F4FF2
secondary
#DAECB1
accent
#E303A1
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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