#7F2FA8#7F2FA8

#7F2FA8 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.8% C 0.189 H 311.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7F2FA8
RGBrgb(127, 47, 168)
HSLhsl(280, 56%, 42%)
HSVhsv(280, 72%, 66%)
CMYKcmyk(24.4%, 72%, 0%, 34.1%)
CIE-LABlab(36.69, 53.68, -49.91)
CIE-LCHlch(36.69, 73.30, 317.08°)
OKLaboklab(47.8% 0.1251 -0.1411)
OKLCHoklch(47.8% 0.189 311.6)
XYZxyz(16.8355, 9.3726, 37.9604)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA8 #58A82F
analogous
#422FA8 #7F2FA8 #A82F95
triadic
#7F2FA8 #A87F2F #2FA87F
tetradic
#7F2FA8 #A8422F #58A82F #2F95A8
square
#7F2FA8 #A8422F #58A82F #2F95A8
split-complementary
#7F2FA8 #95A82F #2FA842
monochromatic
#371448 #5B2278 #7F2FA8 #9F48CC #B878D9

Accessibility & contrast

On white

7.31
#7F2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FA8
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA8#FFFFFF#000000##FFFFFF
##7F2FA81.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#1E58A5
Tritanopia (blue-blind)
#7A4A68
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2fa8;
/* rgb */ color: rgb(127, 47, 168);
/* oklch */ color: oklch(47.8% 0.189 311.6);
Tailwind
colors: {
  custom: {
    50: '#a86fc3',
    500: '#7f2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa8;
$custom-light: #a86fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa8",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 279.669,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47802,
    "c": 0.18858,
    "h": 311.6
  },
  "luminance": 0.09372
}

Semantic roles & 50–950 ramp

primary
#7F2FA8
secondary
#8DC171
accent
#E0487C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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