#7F2FC2#7F2FC2

#7F2FC2 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.214 H 304.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7F2FC2
RGBrgb(127, 47, 194)
HSLhsl(273, 61%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(34.5%, 75.8%, 0%, 23.9%)
CIE-LABlab(38.62, 59.48, -62.17)
CIE-LCHlch(38.62, 86.04, 313.73°)
OKLaboklab(49.77% 0.1204 -0.1771)
OKLCHoklch(49.77% 0.214 304.2)
XYZxyz(19.5043, 10.4402, 52.0161)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FC2 #72C22F
analogous
#352FC2 #7F2FC2 #C22FBC
triadic
#7F2FC2 #C27F2F #2FC27F
tetradic
#7F2FC2 #C2352F #72C22F #2FBCC2
square
#7F2FC2 #C2352F #72C22F #2FBCC2
split-complementary
#7F2FC2 #BCC22F #2FC235
monochromatic
#3E175F #5F2391 #7F2FC2 #9D58D6 #BA89E2

Accessibility & contrast

On white

6.80
#7F2FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F2FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FC2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FC2#FFFFFF#000000##FFFFFF
##7F2FC21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#725477
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2fc2;
/* rgb */ color: rgb(127, 47, 194);
/* oklch */ color: oklch(49.8% 0.214 304.2);
Tailwind
colors: {
  custom: {
    50: '#aa70d5',
    500: '#7f2fc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fc2;
$custom-light: #aa70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fc2",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 272.653,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.21417,
    "h": 304.2
  },
  "luminance": 0.1044
}

Semantic roles & 50–950 ramp

primary
#7F2FC2
secondary
#A3CC81
accent
#E4448D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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