#7F3DC4#7F3DC4

#7F3DC4 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.200 H 302.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7F3DC4
RGBrgb(127, 61, 196)
HSLhsl(269, 53%, 50%)
HSVhsv(269, 69%, 77%)
CMYKcmyk(35.2%, 68.9%, 0%, 23.1%)
CIE-LABlab(40.95, 53.79, -59.55)
CIE-LCHlch(40.95, 80.25, 312.09°)
OKLaboklab(51.47% 0.1066 -0.1695)
OKLCHoklch(51.47% 0.2 302.2)
XYZxyz(20.3826, 11.8350, 53.4244)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DC4 #82C43D
analogous
#3D3EC4 #7F3DC4 #C23DC4
triadic
#7F3DC4 #C47F3D #3DC47F
tetradic
#7F3DC4 #C43D3E #82C43D #3DC4C2
square
#7F3DC4 #C43D3E #82C43D #3DC4C2
split-complementary
#7F3DC4 #C4C23D #3EC43D
monochromatic
#431F67 #612E96 #7F3DC4 #9E6CD2 #BD9BE1

Accessibility & contrast

On white

6.24
#7F3DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7F3DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DC4
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DC4#FFFFFF#000000##FFFFFF
##7F3DC41.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#715D7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3dc4;
/* rgb */ color: rgb(127, 61, 196);
/* oklch */ color: oklch(51.5% 0.200 302.2);
Tailwind
colors: {
  custom: {
    50: '#a977d7',
    500: '#7f3dc4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dc4;
$custom-light: #a977d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dc4",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 196
  },
  "hsl": {
    "h": 269.333,
    "s": 53.36,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51471,
    "c": 0.20024,
    "h": 302.2
  },
  "luminance": 0.11835
}

Semantic roles & 50–950 ramp

primary
#7F3DC4
secondary
#AFCD90
accent
#DD4B96
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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