#7F2FC1#7F2FC1

#7F2FC1 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.213 H 304.5°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7F2FC1
RGBrgb(127, 47, 193)
HSLhsl(273, 61%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(34.2%, 75.6%, 0%, 24.3%)
CIE-LABlab(38.54, 59.25, -61.71)
CIE-LCHlch(38.54, 85.55, 313.83°)
OKLaboklab(49.69% 0.1206 -0.1758)
OKLCHoklch(49.69% 0.213 304.5)
XYZxyz(19.3923, 10.3954, 51.4266)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FC1 #71C12F
analogous
#362FC1 #7F2FC1 #C12FBA
triadic
#7F2FC1 #C17F2F #2FC17F
tetradic
#7F2FC1 #C1362F #71C12F #2FBAC1
square
#7F2FC1 #C1362F #71C12F #2FBAC1
split-complementary
#7F2FC1 #BAC12F #2FC136
monochromatic
#3E175F #5F2390 #7F2FC1 #9D57D6 #BA88E2

Accessibility & contrast

On white

6.82
#7F2FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7F2FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FC1
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FC1#FFFFFF#000000##FFFFFF
##7F2FC11.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#725476
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2fc1;
/* rgb */ color: rgb(127, 47, 193);
/* oklch */ color: oklch(49.7% 0.213 304.5);
Tailwind
colors: {
  custom: {
    50: '#aa70d5',
    500: '#7f2fc1',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fc1;
$custom-light: #aa70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fc1",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 272.877,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49693,
    "c": 0.21318,
    "h": 304.5
  },
  "luminance": 0.10395
}

Semantic roles & 50–950 ramp

primary
#7F2FC1
secondary
#A2CC80
accent
#E4448C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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