#7F30BA#7F30BA

#7F30BA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.205 H 306.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7F30BA
RGBrgb(127, 48, 186)
HSLhsl(274, 59%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(31.7%, 74.2%, 0%, 27.1%)
CIE-LABlab(38.15, 57.26, -58.25)
CIE-LCHlch(38.15, 81.67, 314.51°)
OKLaboklab(49.25% 0.1212 -0.1656)
OKLCHoklch(49.25% 0.205 306.2)
XYZxyz(18.6703, 10.1713, 47.4245)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30BA #6BBA30
analogous
#3A30BA #7F30BA #BA30B0
triadic
#7F30BA #BA7F30 #30BA7F
tetradic
#7F30BA #BA3A30 #6BBA30 #30B0BA
square
#7F30BA #BA3A30 #6BBA30 #30B0BA
split-complementary
#7F30BA #B0BA30 #30BA3A
monochromatic
#3D1759 #5E2389 #7F30BA #9D54D3 #B985DF

Accessibility & contrast

On white

6.92
#7F30BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7F30BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30BA
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30BA#FFFFFF#000000##FFFFFF
##7F30BA1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#755273
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f30ba;
/* rgb */ color: rgb(127, 48, 186);
/* oklch */ color: oklch(49.2% 0.205 306.2);
Tailwind
colors: {
  custom: {
    50: '#a970d0',
    500: '#7f30ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f30ba;
$custom-light: #a970d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30ba",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 274.348,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49246,
    "c": 0.20519,
    "h": 306.2
  },
  "luminance": 0.10171
}

Semantic roles & 50–950 ramp

primary
#7F30BA
secondary
#9DC97D
accent
#E24689
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F30BA

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

Preview Lab → · Contrast checker → · Palette generator →

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