#7F3DD4#7F3DD4

#7F3DD4 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.217 H 298.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7F3DD4
RGBrgb(127, 61, 212)
HSLhsl(266, 64%, 54%)
HSVhsv(266, 71%, 83%)
CMYKcmyk(40.1%, 71.2%, 0%, 16.9%)
CIE-LABlab(42.16, 57.71, -66.85)
CIE-LCHlch(42.16, 88.32, 310.80°)
OKLaboklab(52.71% 0.1039 -0.191)
OKLCHoklch(52.71% 0.217 298.5)
XYZxyz(22.3018, 12.6027, 63.5322)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DD4 #92D43D
analogous
#3D46D4 #7F3DD4 #CA3DD4
triadic
#7F3DD4 #D47F3D #3DD47F
tetradic
#7F3DD4 #D43D46 #92D43D #3DD4CA
square
#7F3DD4 #D43D46 #92D43D #3DD4CA
split-complementary
#7F3DD4 #D4CA3D #46D43D
monochromatic
#451B7B #6126AD #7F3DD4 #A06FDF #C1A1EA

Accessibility & contrast

On white

5.96
#7F3DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7F3DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DD4
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DD4#FFFFFF#000000##FFFFFF
##7F3DD41.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0062D1
Tritanopia (blue-blind)
#6A6385
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f3dd4;
/* rgb */ color: rgb(127, 61, 212);
/* oklch */ color: oklch(52.7% 0.217 298.5);
Tailwind
colors: {
  custom: {
    50: '#ab78e2',
    500: '#7f3dd4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dd4;
$custom-light: #ab78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dd4",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 212
  },
  "hsl": {
    "h": 266.225,
    "s": 63.713,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52707,
    "c": 0.2174,
    "h": 298.5
  },
  "luminance": 0.12603
}

Semantic roles & 50–950 ramp

primary
#7F3DD4
secondary
#BAD796
accent
#E7419E
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110915
muted
#807B84

Preview Lab

Preview with #7F3DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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