#7F00FF#7F00FF

#7F00FF is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 52.9% C 0.293 H 293.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7F00FF
RGBrgb(127, 0, 255)
HSLhsl(270, 100%, 50%)
HSVhsv(270, 100%, 100%)
CMYKcmyk(50.2%, 100%, 0%, 0%)
CIE-LABlab(40.79, 83.09, -93.50)
CIE-LCHlch(40.79, 125.09, 311.63°)
OKLaboklab(52.94% 0.1174 -0.2685)
OKLCHoklch(52.94% 0.293 293.6)
XYZxyz(26.7973, 11.7311, 95.4407)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F00FF #80FF00
analogous
#0001FF #7F00FF #FE00FF
triadic
#7F00FF #FF7F00 #00FF7F
tetradic
#7F00FF #FF0001 #80FF00 #00FFFE
square
#7F00FF #FF0001 #80FF00 #00FFFE
split-complementary
#7F00FF #FFFE00 #01FF00
monochromatic
#420085 #6100C2 #7F00FF #9E3DFF #BC7AFF

Accessibility & contrast

On white

6.28
#7F00FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7F00FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F00FF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F00FF#FFFFFF#000000##FFFFFF
##7F00FF1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063FF
Deuteranopia (green-blind)
#005CFB
Tritanopia (blue-blind)
#546596
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f00ff;
/* rgb */ color: rgb(127, 0, 255);
/* oklch */ color: oklch(52.9% 0.293 293.6);
Tailwind
colors: {
  custom: {
    50: '#b267ff',
    500: '#7f00ff',
    950: '#000000',
  },
}
SCSS
$custom: #7f00ff;
$custom-light: #b267ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7f00ff",
  "rgb": {
    "r": 127,
    "g": 0,
    "b": 255
  },
  "hsl": {
    "h": 269.882,
    "s": 100,
    "l": 50
  },
  "oklch": {
    "l": 0.52936,
    "c": 0.29307,
    "h": 293.6
  },
  "luminance": 0.11732
}

Semantic roles & 50–950 ramp

primary
#7F00FF
secondary
#AEE774
accent
#FF2994
background
#FCF6FF
surface
#F8ECFF
border
#D1C7D7
text
#120718
muted
#817A86

Preview Lab

Preview with #7F00FF

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

Preview Lab → · Contrast checker → · Palette generator →

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