#7F4BE7#7F4BE7

#7F4BE7 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.9% C 0.222 H 293.1°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7F4BE7
RGBrgb(127, 75, 231)
HSLhsl(260, 76%, 60%)
HSVhsv(260, 68%, 91%)
CMYKcmyk(45%, 67.5%, 0%, 9.4%)
CIE-LABlab(46.06, 55.77, -71.33)
CIE-LCHlch(46.06, 90.55, 308.02°)
OKLaboklab(55.94% 0.0873 -0.2042)
OKLCHoklch(55.94% 0.222 293.1)
XYZxyz(25.6883, 15.3129, 77.1880)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BE7 #B3E74B
analogous
#4B65E7 #7F4BE7 #CD4BE7
triadic
#7F4BE7 #E77F4B #4BE77F
tetradic
#7F4BE7 #E74B65 #B3E74B #4BE7CD
square
#7F4BE7 #E74B65 #B3E74B #4BE7CD
split-complementary
#7F4BE7 #E7CD4B #65E74B
monochromatic
#4416A2 #5B1DD8 #7F4BE7 #A581EE #CCB7F5

Accessibility & contrast

On white

5.17
#7F4BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7F4BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BE7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BE7#FFFFFF#000000##FFFFFF
##7F4BE71.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#006AE4
Tritanopia (blue-blind)
#607293
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4be7;
/* rgb */ color: rgb(127, 75, 231);
/* oklch */ color: oklch(55.9% 0.222 293.1);
Tailwind
colors: {
  custom: {
    50: '#ac81f0',
    500: '#7f4be7',
    950: '#000000',
  },
}
SCSS
$custom: #7f4be7;
$custom-light: #ac81f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4be7",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 231
  },
  "hsl": {
    "h": 260,
    "s": 76.471,
    "l": 60
  },
  "oklch": {
    "l": 0.55942,
    "c": 0.22207,
    "h": 293.1
  },
  "luminance": 0.15314
}

Semantic roles & 50–950 ramp

primary
#7F4BE7
secondary
#D1E5A9
accent
#F335B4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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