#7F30B8#7F30B8

#7F30B8 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.203 H 306.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7F30B8
RGBrgb(127, 48, 184)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 74%, 72%)
CMYKcmyk(31%, 73.9%, 0%, 27.8%)
CIE-LABlab(38.00, 56.80, -57.31)
CIE-LCHlch(38.00, 80.69, 314.75°)
OKLaboklab(49.09% 0.1216 -0.1628)
OKLCHoklch(49.09% 0.203 306.7)
XYZxyz(18.4592, 10.0868, 46.3126)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30B8 #69B830
analogous
#3B30B8 #7F30B8 #B830AD
triadic
#7F30B8 #B87F30 #30B87F
tetradic
#7F30B8 #B83B30 #69B830 #30ADB8
square
#7F30B8 #B83B30 #69B830 #30ADB8
split-complementary
#7F30B8 #ADB830 #30B83B
monochromatic
#3C1757 #5D2387 #7F30B8 #9D53D2 #B984DF

Accessibility & contrast

On white

6.96
#7F30B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7F30B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30B8
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30B8#FFFFFF#000000##FFFFFF
##7F30B81.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#755172
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f30b8;
/* rgb */ color: rgb(127, 48, 184);
/* oklch */ color: oklch(49.1% 0.203 306.7);
Tailwind
colors: {
  custom: {
    50: '#a970ce',
    500: '#7f30b8',
    950: '#000000',
  },
}
SCSS
$custom: #7f30b8;
$custom-light: #a970ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30b8",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 274.853,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49093,
    "c": 0.20321,
    "h": 306.7
  },
  "luminance": 0.10087
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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