#7F4CF5#7F4CF5

#7F4CF5 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.2% C 0.237 H 290.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7F4CF5
RGBrgb(127, 76, 245)
HSLhsl(258, 89%, 63%)
HSVhsv(258, 69%, 96%)
CMYKcmyk(48.2%, 69%, 0%, 3.9%)
CIE-LABlab(47.33, 58.98, -77.14)
CIE-LCHlch(47.33, 97.10, 307.40°)
OKLaboklab(57.19% 0.0841 -0.2212)
OKLCHoklch(57.19% 0.237 290.8)
XYZxyz(27.8136, 16.2724, 88.0439)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CF5 #C2F54C
analogous
#4C6DF5 #7F4CF5 #D44CF5
triadic
#7F4CF5 #F57F4C #4CF57F
tetradic
#7F4CF5 #F54C6D #C2F54C #4CF5D4
square
#7F4CF5 #F54C6D #C2F54C #4CF5D4
split-complementary
#7F4CF5 #F5D44C #6DF54C
monochromatic
#400BBC #5612F2 #7F4CF5 #A886F8 #D2C0FB

Accessibility & contrast

On white

4.94
#7F4CF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7F4CF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CF5
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CF5#FFFFFF#000000##FFFFFF
##7F4CF51.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073FA
Deuteranopia (green-blind)
#006CF2
Tritanopia (blue-blind)
#58779B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f4cf5;
/* rgb */ color: rgb(127, 76, 245);
/* oklch */ color: oklch(57.2% 0.237 290.8);
Tailwind
colors: {
  custom: {
    50: '#ae82fa',
    500: '#7f4cf5',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cf5;
$custom-light: #ae82fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cf5",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 245
  },
  "hsl": {
    "h": 258.107,
    "s": 89.418,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57188,
    "c": 0.23668,
    "h": 290.8
  },
  "luminance": 0.16273
}

Semantic roles & 50–950 ramp

primary
#7F4CF5
secondary
#DAEDB0
accent
#E600A0
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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