#7F30B2#7F30B2

#7F30B2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.6% C 0.197 H 308.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7F30B2
RGBrgb(127, 48, 178)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 73%, 70%)
CMYKcmyk(28.7%, 73%, 0%, 30.2%)
CIE-LABlab(37.55, 55.46, -54.48)
CIE-LCHlch(37.55, 77.74, 315.51°)
OKLaboklab(48.64% 0.1226 -0.1545)
OKLCHoklch(48.64% 0.197 308.4)
XYZxyz(17.8436, 9.8406, 43.0703)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30B2 #63B230
analogous
#3E30B2 #7F30B2 #B230A4
triadic
#7F30B2 #B27F30 #30B27F
tetradic
#7F30B2 #B23E30 #63B230 #30A4B2
square
#7F30B2 #B23E30 #63B230 #30A4B2
split-complementary
#7F30B2 #A4B230 #30B23E
monochromatic
#3A1652 #5D2382 #7F30B2 #9D50D0 #B880DD

Accessibility & contrast

On white

7.08
#7F30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7F30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F30B2
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30B2#FFFFFF#000000##FFFFFF
##7F30B21.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0659AF
Tritanopia (blue-blind)
#774E6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f30b2;
/* rgb */ color: rgb(127, 48, 178);
/* oklch */ color: oklch(48.6% 0.197 308.4);
Tailwind
colors: {
  custom: {
    50: '#a970ca',
    500: '#7f30b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f30b2;
$custom-light: #a970ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30b2",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 276.462,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4864,
    "c": 0.19726,
    "h": 308.4
  },
  "luminance": 0.0984
}

Semantic roles & 50–950 ramp

primary
#7F30B2
secondary
#97C678
accent
#E14783
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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