#7F30B7#7F30B7

#7F30B7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.202 H 307.0°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7F30B7
RGBrgb(127, 48, 183)
HSLhsl(275, 58%, 45%)
HSVhsv(275, 74%, 72%)
CMYKcmyk(30.6%, 73.8%, 0%, 28.2%)
CIE-LABlab(37.92, 56.58, -56.84)
CIE-LCHlch(37.92, 80.20, 314.87°)
OKLaboklab(49.02% 0.1217 -0.1615)
OKLCHoklch(49.02% 0.202 307)
XYZxyz(18.3548, 10.0451, 45.7625)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30B7 #68B730
analogous
#3B30B7 #7F30B7 #B730AC
triadic
#7F30B7 #B77F30 #30B77F
tetradic
#7F30B7 #B73B30 #68B730 #30ACB7
square
#7F30B7 #B73B30 #68B730 #30ACB7
split-complementary
#7F30B7 #ACB730 #30B73B
monochromatic
#3C1756 #5D2387 #7F30B7 #9D52D2 #B883DE

Accessibility & contrast

On white

6.98
#7F30B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7F30B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30B7
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30B7#FFFFFF#000000##FFFFFF
##7F30B71.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#765071
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f30b7;
/* rgb */ color: rgb(127, 48, 183);
/* oklch */ color: oklch(49.0% 0.202 307.0);
Tailwind
colors: {
  custom: {
    50: '#a970cd',
    500: '#7f30b7',
    950: '#000000',
  },
}
SCSS
$custom: #7f30b7;
$custom-light: #a970cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30b7",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 275.111,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49017,
    "c": 0.20222,
    "h": 307
  },
  "luminance": 0.10045
}

Semantic roles & 50–950 ramp

primary
#7F30B7
secondary
#9BC87B
accent
#E24687
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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