#7F30B5#7F30B5

#7F30B5 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.200 H 307.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7F30B5
RGBrgb(127, 48, 181)
HSLhsl(276, 58%, 45%)
HSVhsv(276, 73%, 71%)
CMYKcmyk(29.8%, 73.5%, 0%, 29%)
CIE-LABlab(37.77, 56.13, -55.90)
CIE-LCHlch(37.77, 79.22, 315.12°)
OKLaboklab(48.86% 0.1221 -0.1587)
OKLCHoklch(48.86% 0.2 307.6)
XYZxyz(18.1481, 9.9624, 44.6740)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30B5 #66B530
analogous
#3C30B5 #7F30B5 #B530A9
triadic
#7F30B5 #B57F30 #30B57F
tetradic
#7F30B5 #B53C30 #66B530 #30A9B5
square
#7F30B5 #B53C30 #66B530 #30A9B5
split-complementary
#7F30B5 #A9B530 #30B53C
monochromatic
#3B1654 #5D2385 #7F30B5 #9D51D1 #B882DE

Accessibility & contrast

On white

7.02
#7F30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7F30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F30B5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30B5#FFFFFF#000000##FFFFFF
##7F30B51.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#764F70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f30b5;
/* rgb */ color: rgb(127, 48, 181);
/* oklch */ color: oklch(48.9% 0.200 307.6);
Tailwind
colors: {
  custom: {
    50: '#a970cc',
    500: '#7f30b5',
    950: '#000000',
  },
}
SCSS
$custom: #7f30b5;
$custom-light: #a970cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30b5",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 275.639,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48865,
    "c": 0.20024,
    "h": 307.6
  },
  "luminance": 0.09962
}

Semantic roles & 50–950 ramp

primary
#7F30B5
secondary
#99C77A
accent
#E14685
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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