#7F2FC8#7F2FC8

#7F2FC8 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.220 H 302.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7F2FC8
RGBrgb(127, 47, 200)
HSLhsl(271, 62%, 48%)
HSVhsv(271, 77%, 78%)
CMYKcmyk(36.5%, 76.5%, 0%, 21.6%)
CIE-LABlab(39.10, 60.86, -64.90)
CIE-LCHlch(39.10, 88.97, 313.16°)
OKLaboklab(50.25% 0.119 -0.1851)
OKLCHoklch(50.25% 0.22 302.7)
XYZxyz(20.1918, 10.7152, 55.6368)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FC8 #78C82F
analogous
#332FC8 #7F2FC8 #C82FC4
triadic
#7F2FC8 #C87F2F #2FC87F
tetradic
#7F2FC8 #C8332F #78C82F #2FC4C8
square
#7F2FC8 #C8332F #78C82F #2FC4C8
split-complementary
#7F2FC8 #C4C82F #2FC833
monochromatic
#401865 #602396 #7F2FC8 #9D5CD9 #BB8DE4

Accessibility & contrast

On white

6.68
#7F2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7F2FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FC8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FC8#FFFFFF#000000##FFFFFF
##7F2FC81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#70577A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f2fc8;
/* rgb */ color: rgb(127, 47, 200);
/* oklch */ color: oklch(50.3% 0.220 302.7);
Tailwind
colors: {
  custom: {
    50: '#ab70da',
    500: '#7f2fc8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fc8;
$custom-light: #ab70da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fc8",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 271.373,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50253,
    "c": 0.22008,
    "h": 302.7
  },
  "luminance": 0.10715
}

Semantic roles & 50–950 ramp

primary
#7F2FC8
secondary
#A8CF84
accent
#E54390
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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