#7F27B3#7F27B3

#7F27B3 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.208 H 308.9°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7F27B3
RGBrgb(127, 39, 179)
HSLhsl(278, 64%, 43%)
HSVhsv(278, 78%, 70%)
CMYKcmyk(29.1%, 78.2%, 0%, 29.8%)
CIE-LABlab(36.40, 59.19, -56.94)
CIE-LCHlch(36.40, 82.14, 316.11°)
OKLaboklab(47.85% 0.1306 -0.1617)
OKLCHoklch(47.85% 0.208 308.9)
XYZxyz(17.6129, 9.2181, 43.4905)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27B3 #5BB327
analogous
#3927B3 #7F27B3 #B327A1
triadic
#7F27B3 #B37F27 #27B37F
tetradic
#7F27B3 #B33927 #5BB327 #27A1B3
square
#7F27B3 #B33927 #5BB327 #27A1B3
split-complementary
#7F27B3 #A1B327 #27B339
monochromatic
#38114E #5B1C81 #7F27B3 #9F41D6 #B874E1

Accessibility & contrast

On white

7.39
#7F27B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7F27B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F27B3
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27B3#FFFFFF#000000##FFFFFF
##7F27B31.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#774A6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f27b3;
/* rgb */ color: rgb(127, 39, 179);
/* oklch */ color: oklch(47.9% 0.208 308.9);
Tailwind
colors: {
  custom: {
    50: '#a96ccb',
    500: '#7f27b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f27b3;
$custom-light: #a96ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27b3",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 277.714,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4785,
    "c": 0.20787,
    "h": 308.9
  },
  "luminance": 0.09218
}

Semantic roles & 50–950 ramp

primary
#7F27B3
secondary
#8FC86E
accent
#E7417E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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