#7E3DC9#7E3DC9

#7E3DC9 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.205 H 300.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7E3DC9
RGBrgb(126, 61, 201)
HSLhsl(268, 56%, 51%)
HSVhsv(268, 70%, 79%)
CMYKcmyk(37.3%, 69.7%, 0%, 21.2%)
CIE-LABlab(41.20, 54.82, -62.06)
CIE-LCHlch(41.20, 82.81, 311.45°)
OKLaboklab(51.74% 0.1044 -0.1769)
OKLCHoklch(51.74% 0.205 300.6)
XYZxyz(20.8130, 11.9900, 56.4648)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3DC9 #88C93D
analogous
#3D42C9 #7E3DC9 #C43DC9
triadic
#7E3DC9 #C97E3D #3DC97E
tetradic
#7E3DC9 #C93D42 #88C93D #3DC9C4
square
#7E3DC9 #C93D42 #88C93D #3DC9C4
split-complementary
#7E3DC9 #C9C43D #42C93D
monochromatic
#431E6D #602C9D #7E3DC9 #9E6DD6 #BE9DE4

Accessibility & contrast

On white

6.18
#7E3DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7E3DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3DC9
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3DC9#FFFFFF#000000##FFFFFF
##7E3DC91.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#6D5F7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e3dc9;
/* rgb */ color: rgb(126, 61, 201);
/* oklch */ color: oklch(51.7% 0.205 300.6);
Tailwind
colors: {
  custom: {
    50: '#a978da',
    500: '#7e3dc9',
    950: '#000000',
  },
}
SCSS
$custom: #7e3dc9;
$custom-light: #a978da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3dc9",
  "rgb": {
    "r": 126,
    "g": 61,
    "b": 201
  },
  "hsl": {
    "h": 267.857,
    "s": 56.452,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51737,
    "c": 0.20545,
    "h": 300.6
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#7E3DC9
secondary
#B3D092
accent
#E04899
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E3DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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