#7F3CD2#7F3CD2

#7F3CD2 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.4% C 0.216 H 299.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7F3CD2
RGBrgb(127, 60, 210)
HSLhsl(267, 63%, 53%)
HSVhsv(267, 71%, 82%)
CMYKcmyk(39.5%, 71.4%, 0%, 17.6%)
CIE-LABlab(41.84, 57.68, -66.22)
CIE-LCHlch(41.84, 87.82, 311.06°)
OKLaboklab(52.43% 0.1052 -0.1891)
OKLCHoklch(52.43% 0.216 299.1)
XYZxyz(21.9982, 12.3966, 62.1941)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CD2 #8FD23C
analogous
#3C44D2 #7F3CD2 #CA3CD2
triadic
#7F3CD2 #D27F3C #3CD27F
tetradic
#7F3CD2 #D23C44 #8FD23C #3CD2CA
square
#7F3CD2 #D23C44 #8FD23C #3CD2CA
split-complementary
#7F3CD2 #D2CA3C #44D23C
monochromatic
#451C78 #6127AA #7F3CD2 #A06EDD #C09FE9

Accessibility & contrast

On white

6.04
#7F3CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7F3CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CD2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CD2#FFFFFF#000000##FFFFFF
##7F3CD21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#0061CF
Tritanopia (blue-blind)
#6B6183
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f3cd2;
/* rgb */ color: rgb(127, 60, 210);
/* oklch */ color: oklch(52.4% 0.216 299.1);
Tailwind
colors: {
  custom: {
    50: '#ab77e1',
    500: '#7f3cd2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cd2;
$custom-light: #ab77e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cd2",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 210
  },
  "hsl": {
    "h": 266.8,
    "s": 62.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52432,
    "c": 0.21639,
    "h": 299.1
  },
  "luminance": 0.12397
}

Semantic roles & 50–950 ramp

primary
#7F3CD2
secondary
#B8D594
accent
#E6429D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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