#7F3CD5#7F3CD5

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

Color values

HEX#7F3CD5
RGBrgb(127, 60, 213)
HSLhsl(266, 65%, 54%)
HSVhsv(266, 72%, 84%)
CMYKcmyk(40.4%, 71.8%, 0%, 16.5%)
CIE-LABlab(42.07, 58.42, -67.57)
CIE-LCHlch(42.07, 89.32, 310.85°)
OKLaboklab(52.67% 0.1046 -0.1931)
OKLCHoklch(52.67% 0.22 298.5)
XYZxyz(22.3754, 12.5475, 64.1809)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CD5 #92D53C
analogous
#3C45D5 #7F3CD5 #CC3CD5
triadic
#7F3CD5 #D57F3C #3CD57F
tetradic
#7F3CD5 #D53C45 #92D53C #3CD5CC
square
#7F3CD5 #D53C45 #92D53C #3CD5CC
split-complementary
#7F3CD5 #D5CC3C #45D53C
monochromatic
#451B7C #6126AE #7F3CD5 #A06EE0 #C1A1EB

Accessibility & contrast

On white

5.98
#7F3CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7F3CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CD5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CD5#FFFFFF#000000##FFFFFF
##7F3CD51.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#6A6385
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f3cd5;
/* rgb */ color: rgb(127, 60, 213);
/* oklch */ color: oklch(52.7% 0.220 298.5);
Tailwind
colors: {
  custom: {
    50: '#ab78e3',
    500: '#7f3cd5',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cd5;
$custom-light: #ab78e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cd5",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 213
  },
  "hsl": {
    "h": 266.275,
    "s": 64.557,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52671,
    "c": 0.21958,
    "h": 298.5
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#7F3CD5
secondary
#BAD796
accent
#E8409E
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7F3CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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