#7F39CB#7F39CB

#7F39CB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.212 H 301.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7F39CB
RGBrgb(127, 57, 203)
HSLhsl(269, 58%, 51%)
HSVhsv(269, 72%, 80%)
CMYKcmyk(37.4%, 71.9%, 0%, 20.4%)
CIE-LABlab(40.82, 57.34, -63.84)
CIE-LCHlch(40.82, 85.81, 311.93°)
OKLaboklab(51.54% 0.1094 -0.1821)
OKLCHoklch(51.54% 0.212 301)
XYZxyz(20.9924, 11.7499, 57.6503)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F39CB #85CB39
analogous
#393CCB #7F39CB #C839CB
triadic
#7F39CB #CB7F39 #39CB7F
tetradic
#7F39CB #CB393C #85CB39 #39CBC8
square
#7F39CB #CB393C #85CB39 #39CBC8
split-complementary
#7F39CB #CBC839 #3CCB39
monochromatic
#431D6D #61299D #7F39CB #9E69D8 #BE9AE4

Accessibility & contrast

On white

6.27
#7F39CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7F39CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F39CB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F39CB#FFFFFF#000000##FFFFFF
##7F39CB1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#6E5D7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f39cb;
/* rgb */ color: rgb(127, 57, 203);
/* oklch */ color: oklch(51.5% 0.212 301.0);
Tailwind
colors: {
  custom: {
    50: '#aa75dc',
    500: '#7f39cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f39cb;
$custom-light: #aa75dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f39cb",
  "rgb": {
    "r": 127,
    "g": 57,
    "b": 203
  },
  "hsl": {
    "h": 268.767,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51538,
    "c": 0.21243,
    "h": 301
  },
  "luminance": 0.1175
}

Semantic roles & 50–950 ramp

primary
#7F39CB
secondary
#B1D090
accent
#E24697
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F39CB

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

Preview Lab → · Contrast checker → · Palette generator →

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