#7F30CA#7F30CA

#7F30CA is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.221 H 302.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7F30CA
RGBrgb(127, 48, 202)
HSLhsl(271, 62%, 49%)
HSVhsv(271, 76%, 79%)
CMYKcmyk(37.1%, 76.2%, 0%, 20.8%)
CIE-LABlab(39.39, 60.92, -65.58)
CIE-LCHlch(39.39, 89.51, 312.89°)
OKLaboklab(50.51% 0.1177 -0.1871)
OKLCHoklch(50.51% 0.221 302.2)
XYZxyz(20.4675, 10.8901, 56.8894)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30CA #7BCA30
analogous
#3230CA #7F30CA #CA30C8
triadic
#7F30CA #CA7F30 #30CA7F
tetradic
#7F30CA #CA3230 #7BCA30 #30C8CA
square
#7F30CA #CA3230 #7BCA30 #30C8CA
split-complementary
#7F30CA #C8CA30 #30CA32
monochromatic
#411867 #602499 #7F30CA #9D5ED9 #BB90E5

Accessibility & contrast

On white

6.61
#7F30CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7F30CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30CA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30CA#FFFFFF#000000##FFFFFF
##7F30CA1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#6F587C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f30ca;
/* rgb */ color: rgb(127, 48, 202);
/* oklch */ color: oklch(50.5% 0.221 302.2);
Tailwind
colors: {
  custom: {
    50: '#ab71db',
    500: '#7f30ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f30ca;
$custom-light: #ab71db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30ca",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 202
  },
  "hsl": {
    "h": 270.779,
    "s": 61.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50512,
    "c": 0.22105,
    "h": 302.2
  },
  "luminance": 0.1089
}

Semantic roles & 50–950 ramp

primary
#7F30CA
secondary
#AACF87
accent
#E54392
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F30CA

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

Preview Lab → · Contrast checker → · Palette generator →

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