#7F3BCC#7F3BCC

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

Color values

HEX#7F3BCC
RGBrgb(127, 59, 204)
HSLhsl(268, 59%, 52%)
HSVhsv(268, 71%, 80%)
CMYKcmyk(37.7%, 71.1%, 0%, 20%)
CIE-LABlab(41.22, 56.67, -63.77)
CIE-LCHlch(41.22, 85.31, 311.63°)
OKLaboklab(51.85% 0.1073 -0.1819)
OKLCHoklch(51.85% 0.211 300.5)
XYZxyz(21.2128, 11.9994, 58.3136)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BCC #88CC3B
analogous
#3B40CC #7F3BCC #C83BCC
triadic
#7F3BCC #CC7F3B #3BCC7F
tetradic
#7F3BCC #CC3B40 #88CC3B #3BCCC8
square
#7F3BCC #CC3B40 #88CC3B #3BCCC8
split-complementary
#7F3BCC #CCC83B #40CC3B
monochromatic
#441D70 #612AA0 #7F3BCC #9F6CD9 #BE9CE5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F3BCC#FFFFFF#000000##FFFFFF
##7F3BCC1.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)
#0061D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#6E5F80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3bcc;
/* rgb */ color: rgb(127, 59, 204);
/* oklch */ color: oklch(51.8% 0.211 300.5);
Tailwind
colors: {
  custom: {
    50: '#aa77dc',
    500: '#7f3bcc',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bcc;
$custom-light: #aa77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bcc",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 204
  },
  "hsl": {
    "h": 268.138,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51845,
    "c": 0.21118,
    "h": 300.5
  },
  "luminance": 0.12
}

Semantic roles & 50–950 ramp

primary
#7F3BCC
secondary
#B3D192
accent
#E24699
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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