#7F4BE2#7F4BE2

#7F4BE2 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.6% C 0.216 H 294.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7F4BE2
RGBrgb(127, 75, 226)
HSLhsl(261, 72%, 59%)
HSVhsv(261, 67%, 89%)
CMYKcmyk(43.8%, 66.8%, 0%, 11.4%)
CIE-LABlab(45.68, 54.46, -69.11)
CIE-LCHlch(45.68, 87.99, 308.24°)
OKLaboklab(55.55% 0.088 -0.1977)
OKLCHoklch(55.55% 0.216 294)
XYZxyz(24.9922, 15.0345, 73.5219)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BE2 #AEE24B
analogous
#4B63E2 #7F4BE2 #CB4BE2
triadic
#7F4BE2 #E27F4B #4BE27F
tetradic
#7F4BE2 #E24B63 #AEE24B #4BE2CB
square
#7F4BE2 #E24B63 #AEE24B #4BE2CB
split-complementary
#7F4BE2 #E2CB4B #63E24B
monochromatic
#45199A #5D21CF #7F4BE2 #A480EA #CAB4F3

Accessibility & contrast

On white

5.24
#7F4BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7F4BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BE2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BE2#FFFFFF#000000##FFFFFF
##7F4BE21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#637090
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4be2;
/* rgb */ color: rgb(127, 75, 226);
/* oklch */ color: oklch(55.6% 0.216 294.0);
Tailwind
colors: {
  custom: {
    50: '#ab81ec',
    500: '#7f4be2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4be2;
$custom-light: #ab81ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4be2",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 226
  },
  "hsl": {
    "h": 260.662,
    "s": 72.249,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55553,
    "c": 0.21639,
    "h": 294
  },
  "luminance": 0.15035
}

Semantic roles & 50–950 ramp

primary
#7F4BE2
secondary
#CEE2A7
accent
#EF39B0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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