#7F50D4#7F50D4

#7F50D4 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.2% C 0.194 H 295.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7F50D4
RGBrgb(127, 80, 212)
HSLhsl(261, 61%, 57%)
HSVhsv(261, 62%, 83%)
CMYKcmyk(40.1%, 62.3%, 0%, 16.9%)
CIE-LABlab(45.64, 48.15, -61.20)
CIE-LCHlch(45.64, 77.87, 308.19°)
OKLaboklab(55.2% 0.0843 -0.1744)
OKLCHoklch(55.2% 0.194 295.8)
XYZxyz(23.5016, 15.0023, 63.9321)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F50D4 #A5D450
analogous
#5063D4 #7F50D4 #C150D4
triadic
#7F50D4 #D47F50 #50D47F
tetradic
#7F50D4 #D45063 #A5D450 #50D4C1
square
#7F50D4 #D45063 #A5D450 #50D4C1
split-complementary
#7F50D4 #D4C150 #63D450
monochromatic
#462188 #5F2EB9 #7F50D4 #A381E0 #C7B2EC

Accessibility & contrast

On white

5.25
#7F50D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7F50D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F50D4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F50D4#FFFFFF#000000##FFFFFF
##7F50D41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#006AD1
Tritanopia (blue-blind)
#696E8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f50d4;
/* rgb */ color: rgb(127, 80, 212);
/* oklch */ color: oklch(55.2% 0.194 295.8);
Tailwind
colors: {
  custom: {
    50: '#aa83e2',
    500: '#7f50d4',
    950: '#000000',
  },
}
SCSS
$custom: #7f50d4;
$custom-light: #aa83e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f50d4",
  "rgb": {
    "r": 127,
    "g": 80,
    "b": 212
  },
  "hsl": {
    "h": 261.364,
    "s": 60.55,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55203,
    "c": 0.19371,
    "h": 295.8
  },
  "luminance": 0.15003
}

Semantic roles & 50–950 ramp

primary
#7F50D4
secondary
#C8DBA5
accent
#E444AB
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F50D4

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

Preview Lab → · Contrast checker → · Palette generator →

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