#7F30C4#7F30C4

#7F30C4 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.215 H 303.6°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7F30C4
RGBrgb(127, 48, 196)
HSLhsl(272, 61%, 48%)
HSVhsv(272, 76%, 77%)
CMYKcmyk(35.2%, 75.5%, 0%, 23.1%)
CIE-LABlab(38.92, 59.54, -62.86)
CIE-LCHlch(38.92, 86.58, 313.45°)
OKLaboklab(50.03% 0.1191 -0.1791)
OKLCHoklch(50.03% 0.215 303.6)
XYZxyz(19.7708, 10.6115, 53.2205)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30C4 #75C430
analogous
#3530C4 #7F30C4 #C430BF
triadic
#7F30C4 #C47F30 #30C47F
tetradic
#7F30C4 #C43530 #75C430 #30BFC4
square
#7F30C4 #C43530 #75C430 #30BFC4
split-complementary
#7F30C4 #BFC430 #30C435
monochromatic
#3F1862 #5F2493 #7F30C4 #9D5AD7 #BA8CE3

Accessibility & contrast

On white

6.73
#7F30C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F30C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30C4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30C4#FFFFFF#000000##FFFFFF
##7F30C41.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#005BC1
Tritanopia (blue-blind)
#715678
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f30c4;
/* rgb */ color: rgb(127, 48, 196);
/* oklch */ color: oklch(50.0% 0.215 303.6);
Tailwind
colors: {
  custom: {
    50: '#aa71d7',
    500: '#7f30c4',
    950: '#000000',
  },
}
SCSS
$custom: #7f30c4;
$custom-light: #aa71d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30c4",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 196
  },
  "hsl": {
    "h": 272.027,
    "s": 60.656,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5003,
    "c": 0.21511,
    "h": 303.6
  },
  "luminance": 0.10611
}

Semantic roles & 50–950 ramp

primary
#7F30C4
secondary
#A5CD83
accent
#E4448F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F30C4

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

Preview Lab → · Contrast checker → · Palette generator →

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