#7F3DC5#7F3DC5

#7F3DC5 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.201 H 301.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7F3DC5
RGBrgb(127, 61, 197)
HSLhsl(269, 54%, 51%)
HSVhsv(269, 69%, 77%)
CMYKcmyk(35.5%, 69%, 0%, 22.7%)
CIE-LABlab(41.03, 54.04, -60.01)
CIE-LCHlch(41.03, 80.76, 312.00°)
OKLaboklab(51.55% 0.1064 -0.1709)
OKLCHoklch(51.55% 0.201 301.9)
XYZxyz(20.4968, 11.8807, 54.0259)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DC5 #83C53D
analogous
#3D3FC5 #7F3DC5 #C33DC5
triadic
#7F3DC5 #C57F3D #3DC57F
tetradic
#7F3DC5 #C53D3F #83C53D #3DC5C3
square
#7F3DC5 #C53D3F #83C53D #3DC5C3
split-complementary
#7F3DC5 #C5C33D #3FC53D
monochromatic
#431F68 #612D98 #7F3DC5 #9E6CD3 #BD9BE1

Accessibility & contrast

On white

6.22
#7F3DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7F3DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DC5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DC5#FFFFFF#000000##FFFFFF
##7F3DC51.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#705D7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3dc5;
/* rgb */ color: rgb(127, 61, 197);
/* oklch */ color: oklch(51.5% 0.201 301.9);
Tailwind
colors: {
  custom: {
    50: '#aa77d7',
    500: '#7f3dc5',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dc5;
$custom-light: #aa77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dc5",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 197
  },
  "hsl": {
    "h": 269.118,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51546,
    "c": 0.20131,
    "h": 301.9
  },
  "luminance": 0.11881
}

Semantic roles & 50–950 ramp

primary
#7F3DC5
secondary
#B0CD91
accent
#DD4A96
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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