#7F30CF#7F30CF

#7F30CF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.226 H 301.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7F30CF
RGBrgb(127, 48, 207)
HSLhsl(270, 62%, 50%)
HSVhsv(270, 77%, 81%)
CMYKcmyk(38.6%, 76.8%, 0%, 18.8%)
CIE-LABlab(39.80, 62.09, -67.81)
CIE-LCHlch(39.80, 91.94, 312.47°)
OKLaboklab(50.92% 0.1164 -0.1937)
OKLCHoklch(50.92% 0.226 301)
XYZxyz(21.0691, 11.1308, 60.0578)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30CF #80CF30
analogous
#3031CF #7F30CF #CE30CF
triadic
#7F30CF #CF7F30 #30CF7F
tetradic
#7F30CF #CF3031 #80CF30 #30CFCE
square
#7F30CF #CF3031 #80CF30 #30CFCE
split-complementary
#7F30CF #CFCE30 #31CF30
monochromatic
#42196C #61249D #7F30CF #9E62DB #BC93E6

Accessibility & contrast

On white

6.51
#7F30CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7F30CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30CF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30CF#FFFFFF#000000##FFFFFF
##7F30CF1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#6D5A7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f30cf;
/* rgb */ color: rgb(127, 48, 207);
/* oklch */ color: oklch(50.9% 0.226 301.0);
Tailwind
colors: {
  custom: {
    50: '#ab71df',
    500: '#7f30cf',
    950: '#000000',
  },
}
SCSS
$custom: #7f30cf;
$custom-light: #ab71df;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30cf",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 207
  },
  "hsl": {
    "h": 269.811,
    "s": 62.353,
    "l": 50
  },
  "oklch": {
    "l": 0.50922,
    "c": 0.226,
    "h": 301
  },
  "luminance": 0.11131
}

Semantic roles & 50–950 ramp

primary
#7F30CF
secondary
#AED18A
accent
#E54294
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F30CF

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

Preview Lab → · Contrast checker → · Palette generator →

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