#7F2FC5#7F2FC5

#7F2FC5 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.217 H 303.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7F2FC5
RGBrgb(127, 47, 197)
HSLhsl(272, 61%, 48%)
HSVhsv(272, 76%, 77%)
CMYKcmyk(35.5%, 76.1%, 0%, 22.7%)
CIE-LABlab(38.86, 60.17, -63.54)
CIE-LCHlch(38.86, 87.51, 313.44°)
OKLaboklab(50.01% 0.1197 -0.1811)
OKLCHoklch(50.01% 0.217 303.5)
XYZxyz(19.8446, 10.5763, 53.8085)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FC5 #75C52F
analogous
#342FC5 #7F2FC5 #C52FC0
triadic
#7F2FC5 #C57F2F #2FC57F
tetradic
#7F2FC5 #C5342F #75C52F #2FC0C5
square
#7F2FC5 #C5342F #75C52F #2FC0C5
split-complementary
#7F2FC5 #C0C52F #2FC534
monochromatic
#3F1762 #5F2394 #7F2FC5 #9D5AD8 #BA8BE3

Accessibility & contrast

On white

6.74
#7F2FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F2FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FC5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FC5#FFFFFF#000000##FFFFFF
##7F2FC51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#715679
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2fc5;
/* rgb */ color: rgb(127, 47, 197);
/* oklch */ color: oklch(50.0% 0.217 303.5);
Tailwind
colors: {
  custom: {
    50: '#aa70d8',
    500: '#7f2fc5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fc5;
$custom-light: #aa70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fc5",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 272,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50011,
    "c": 0.21713,
    "h": 303.5
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#7F2FC5
secondary
#A5CD82
accent
#E5438F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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