#7F30D2#7F30D2

#7F30D2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.2% C 0.229 H 300.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7F30D2
RGBrgb(127, 48, 210)
HSLhsl(269, 64%, 51%)
HSVhsv(269, 77%, 82%)
CMYKcmyk(39.5%, 77.1%, 0%, 17.6%)
CIE-LABlab(40.05, 62.79, -69.15)
CIE-LCHlch(40.05, 93.40, 312.24°)
OKLaboklab(51.17% 0.1156 -0.1976)
OKLCHoklch(51.17% 0.229 300.3)
XYZxyz(21.4393, 11.2789, 62.0078)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30D2 #83D230
analogous
#3032D2 #7F30D2 #D030D2
triadic
#7F30D2 #D27F30 #30D27F
tetradic
#7F30D2 #D23032 #83D230 #30D2D0
square
#7F30D2 #D23032 #83D230 #30D2D0
split-complementary
#7F30D2 #D2D030 #32D230
monochromatic
#43186F #6123A2 #7F30D2 #9E62DD #BD95E8

Accessibility & contrast

On white

6.45
#7F30D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7F30D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30D2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30D2#FFFFFF#000000##FFFFFF
##7F30D21.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#6C5C80
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f30d2;
/* rgb */ color: rgb(127, 48, 210);
/* oklch */ color: oklch(51.2% 0.229 300.3);
Tailwind
colors: {
  custom: {
    50: '#ab71e1',
    500: '#7f30d2',
    950: '#000000',
  },
}
SCSS
$custom: #7f30d2;
$custom-light: #ab71e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30d2",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 210
  },
  "hsl": {
    "h": 269.259,
    "s": 64.286,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5117,
    "c": 0.22896,
    "h": 300.3
  },
  "luminance": 0.11279
}

Semantic roles & 50–950 ramp

primary
#7F30D2
secondary
#B0D38B
accent
#E74196
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F30D2

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

Preview Lab → · Contrast checker → · Palette generator →

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