#7F39B2#7F39B2

#7F39B2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.7% C 0.186 H 307.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7F39B2
RGBrgb(127, 57, 178)
HSLhsl(275, 51%, 46%)
HSVhsv(275, 68%, 70%)
CMYKcmyk(28.7%, 68%, 0%, 30.2%)
CIE-LABlab(38.99, 51.43, -52.16)
CIE-LCHlch(38.99, 73.25, 314.60°)
OKLaboklab(49.66% 0.1132 -0.1478)
OKLCHoklch(49.66% 0.186 307.4)
XYZxyz(18.2497, 10.6529, 43.2057)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F39B2 #6CB239
analogous
#4339B2 #7F39B2 #B239A8
triadic
#7F39B2 #B27F39 #39B27F
tetradic
#7F39B2 #B24339 #6CB239 #39A8B2
square
#7F39B2 #B24339 #6CB239 #39A8B2
split-complementary
#7F39B2 #A8B239 #39B243
monochromatic
#3D1B55 #5E2A84 #7F39B2 #9D5DCB #B98BDA

Accessibility & contrast

On white

6.71
#7F39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7F39B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F39B2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F39B2#FFFFFF#000000##FFFFFF
##7F39B21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#1C5CAF
Tritanopia (blue-blind)
#775371
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f39b2;
/* rgb */ color: rgb(127, 57, 178);
/* oklch */ color: oklch(49.7% 0.186 307.4);
Tailwind
colors: {
  custom: {
    50: '#a875ca',
    500: '#7f39b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f39b2;
$custom-light: #a875ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f39b2",
  "rgb": {
    "r": 127,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 274.711,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49663,
    "c": 0.18612,
    "h": 307.4
  },
  "luminance": 0.10653
}

Semantic roles & 50–950 ramp

primary
#7F39B2
secondary
#9EC482
accent
#DB4D89
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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