#7F39B5#7F39B5

#7F39B5 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.9% C 0.189 H 306.6°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7F39B5
RGBrgb(127, 57, 181)
HSLhsl(274, 52%, 47%)
HSVhsv(274, 69%, 71%)
CMYKcmyk(29.8%, 68.5%, 0%, 29%)
CIE-LABlab(39.20, 52.12, -53.59)
CIE-LCHlch(39.20, 74.76, 314.20°)
OKLaboklab(49.88% 0.1128 -0.152)
OKLCHoklch(49.88% 0.189 306.6)
XYZxyz(18.5542, 10.7747, 44.8094)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F39B5 #6FB539
analogous
#4139B5 #7F39B5 #B539AD
triadic
#7F39B5 #B57F39 #39B57F
tetradic
#7F39B5 #B54139 #6FB539 #39ADB5
square
#7F39B5 #B54139 #6FB539 #39ADB5
split-complementary
#7F39B5 #ADB539 #39B541
monochromatic
#3E1C58 #5E2A86 #7F39B5 #9D5FCD #B98DDB

Accessibility & contrast

On white

6.66
#7F39B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7F39B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F39B5
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F39B5#FFFFFF#000000##FFFFFF
##7F39B51.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#165DB2
Tritanopia (blue-blind)
#765472
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f39b5;
/* rgb */ color: rgb(127, 57, 181);
/* oklch */ color: oklch(49.9% 0.189 306.6);
Tailwind
colors: {
  custom: {
    50: '#a875cc',
    500: '#7f39b5',
    950: '#000000',
  },
}
SCSS
$custom: #7f39b5;
$custom-light: #a875cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f39b5",
  "rgb": {
    "r": 127,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 273.871,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49878,
    "c": 0.18929,
    "h": 306.6
  },
  "luminance": 0.10774
}

Semantic roles & 50–950 ramp

primary
#7F39B5
secondary
#A1C684
accent
#DC4C8B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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