#7F3EC8#7F3EC8

#7F3EC8 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.9% C 0.203 H 301.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7F3EC8
RGBrgb(127, 62, 200)
HSLhsl(268, 56%, 51%)
HSVhsv(268, 69%, 78%)
CMYKcmyk(36.5%, 69%, 0%, 21.6%)
CIE-LABlab(41.42, 54.29, -61.12)
CIE-LCHlch(41.42, 81.75, 311.61°)
OKLaboklab(51.9% 0.105 -0.1741)
OKLCHoklch(51.9% 0.203 301.1)
XYZxyz(20.8978, 12.1273, 55.8722)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EC8 #87C83E
analogous
#3E42C8 #7F3EC8 #C43EC8
triadic
#7F3EC8 #C87F3E #3EC87F
tetradic
#7F3EC8 #C83E42 #87C83E #3EC8C4
square
#7F3EC8 #C83E42 #87C83E #3EC8C4
split-complementary
#7F3EC8 #C8C43E #42C83E
monochromatic
#441F6D #612D9C #7F3EC8 #9F6ED6 #BE9DE3

Accessibility & contrast

On white

6.13
#7F3EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7F3EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EC8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EC8#FFFFFF#000000##FFFFFF
##7F3EC81.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#6F5F7E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f3ec8;
/* rgb */ color: rgb(127, 62, 200);
/* oklch */ color: oklch(51.9% 0.203 301.1);
Tailwind
colors: {
  custom: {
    50: '#aa78da',
    500: '#7f3ec8',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ec8;
$custom-light: #aa78da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ec8",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 200
  },
  "hsl": {
    "h": 268.261,
    "s": 55.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51895,
    "c": 0.20332,
    "h": 301.1
  },
  "luminance": 0.12127
}

Semantic roles & 50–950 ramp

primary
#7F3EC8
secondary
#B3CF92
accent
#DF4998
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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