#7F4BEB#7F4BEB

#7F4BEB is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.3% C 0.227 H 292.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7F4BEB
RGBrgb(127, 75, 235)
HSLhsl(260, 80%, 61%)
HSVhsv(260, 68%, 92%)
CMYKcmyk(46%, 68.1%, 0%, 7.8%)
CIE-LABlab(46.37, 56.83, -73.09)
CIE-LCHlch(46.37, 92.58, 307.87°)
OKLaboklab(56.26% 0.0867 -0.2094)
OKLCHoklch(56.26% 0.227 292.5)
XYZxyz(26.2597, 15.5415, 80.1974)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BEB #B7EB4B
analogous
#4B67EB #7F4BEB #CF4BEB
triadic
#7F4BEB #EB7F4B #4BEB7F
tetradic
#7F4BEB #EB4B67 #B7EB4B #4BEBCF
square
#7F4BEB #EB4B67 #B7EB4B #4BEBCF
split-complementary
#7F4BEB #EBCF4B #67EB4B
monochromatic
#4413A9 #5A19E0 #7F4BEB #A682F1 #CDB9F7

Accessibility & contrast

On white

5.11
#7F4BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7F4BEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BEB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BEB#FFFFFF#000000##FFFFFF
##7F4BEB1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F0
Deuteranopia (green-blind)
#006BE8
Tritanopia (blue-blind)
#5E7395
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f4beb;
/* rgb */ color: rgb(127, 75, 235);
/* oklch */ color: oklch(56.3% 0.227 292.5);
Tailwind
colors: {
  custom: {
    50: '#ac81f3',
    500: '#7f4beb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4beb;
$custom-light: #ac81f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4beb",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 235
  },
  "hsl": {
    "h": 259.5,
    "s": 80,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56258,
    "c": 0.22659,
    "h": 292.5
  },
  "luminance": 0.15542
}

Semantic roles & 50–950 ramp

primary
#7F4BEB
secondary
#D4E7AB
accent
#DC0998
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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