#7F2FC9#7F2FC9

#7F2FC9 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.221 H 302.5°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7F2FC9
RGBrgb(127, 47, 201)
HSLhsl(271, 62%, 49%)
HSVhsv(271, 77%, 79%)
CMYKcmyk(36.8%, 76.6%, 0%, 21.2%)
CIE-LABlab(39.18, 61.09, -65.35)
CIE-LCHlch(39.18, 89.46, 313.07°)
OKLaboklab(50.33% 0.1187 -0.1865)
OKLCHoklch(50.33% 0.221 302.5)
XYZxyz(20.3090, 10.7621, 56.2544)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FC9 #79C92F
analogous
#322FC9 #7F2FC9 #C92FC6
triadic
#7F2FC9 #C97F2F #2FC97F
tetradic
#7F2FC9 #C9322F #79C92F #2FC6C9
square
#7F2FC9 #C9322F #79C92F #2FC6C9
split-complementary
#7F2FC9 #C6C92F #2FC932
monochromatic
#401866 #602397 #7F2FC9 #9D5CD9 #BB8EE5

Accessibility & contrast

On white

6.66
#7F2FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7F2FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FC9
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FC9#FFFFFF#000000##FFFFFF
##7F2FC91.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#6F577B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f2fc9;
/* rgb */ color: rgb(127, 47, 201);
/* oklch */ color: oklch(50.3% 0.221 302.5);
Tailwind
colors: {
  custom: {
    50: '#ab70da',
    500: '#7f2fc9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fc9;
$custom-light: #ab70da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fc9",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 271.169,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50335,
    "c": 0.22107,
    "h": 302.5
  },
  "luminance": 0.10762
}

Semantic roles & 50–950 ramp

primary
#7F2FC9
secondary
#A8CF85
accent
#E54391
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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