#7F27B2#7F27B2

#7F27B2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.207 H 309.2°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7F27B2
RGBrgb(127, 39, 178)
HSLhsl(278, 64%, 43%)
HSVhsv(278, 78%, 70%)
CMYKcmyk(28.7%, 78.1%, 0%, 30.2%)
CIE-LABlab(36.32, 58.98, -56.47)
CIE-LCHlch(36.32, 81.66, 316.24°)
OKLaboklab(47.77% 0.1308 -0.1603)
OKLCHoklch(47.77% 0.207 309.2)
XYZxyz(17.5122, 9.1778, 42.9598)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27B2 #5AB227
analogous
#3A27B2 #7F27B2 #B2279F
triadic
#7F27B2 #B27F27 #27B27F
tetradic
#7F27B2 #B23A27 #5AB227 #279FB2
square
#7F27B2 #B23A27 #5AB227 #279FB2
split-complementary
#7F27B2 #9FB227 #27B23A
monochromatic
#37114E #5B1C80 #7F27B2 #9F41D5 #B873E0

Accessibility & contrast

On white

7.41
#7F27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F27B2
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27B2#FFFFFF#000000##FFFFFF
##7F27B21.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#774A6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f27b2;
/* rgb */ color: rgb(127, 39, 178);
/* oklch */ color: oklch(47.8% 0.207 309.2);
Tailwind
colors: {
  custom: {
    50: '#a96cca',
    500: '#7f27b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f27b2;
$custom-light: #a96cca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27b2",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 277.986,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47772,
    "c": 0.20694,
    "h": 309.2
  },
  "luminance": 0.09177
}

Semantic roles & 50–950 ramp

primary
#7F27B2
secondary
#8EC86D
accent
#E7417E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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