#7F5EEB#7F5EEB

#7F5EEB is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.0% C 0.203 H 289.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F5EEB
RGBrgb(127, 94, 235)
HSLhsl(254, 78%, 65%)
HSVhsv(254, 60%, 92%)
CMYKcmyk(46%, 60%, 0%, 7.8%)
CIE-LABlab(50.11, 46.71, -67.00)
CIE-LCHlch(50.11, 81.67, 304.88°)
OKLaboklab(58.97% 0.0676 -0.1915)
OKLCHoklch(58.97% 0.203 289.5)
XYZxyz(27.7462, 18.5145, 80.6929)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EEB #CAEB5E
analogous
#5E83EB #7F5EEB #C65EEB
triadic
#7F5EEB #EB7F5E #5EEB7F
tetradic
#7F5EEB #EB5E83 #CAEB5E #5EEBC6
square
#7F5EEB #EB5E83 #CAEB5E #5EEBC6
split-complementary
#7F5EEB #EBC65E #83EB5E
monochromatic
#3C17B8 #5428E4 #7F5EEB #AA94F2 #D6CBF9

Accessibility & contrast

On white

4.47
#7F5EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7F5EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EEB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EEB#FFFFFF#000000##000000
##7F5EEB1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#5D7E9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5eeb;
/* rgb */ color: rgb(127, 94, 235);
/* oklch */ color: oklch(59.0% 0.203 289.5);
Tailwind
colors: {
  custom: {
    50: '#ab8df2',
    500: '#7f5eeb',
    950: '#000000',
  },
}
SCSS
$custom: #7f5eeb;
$custom-light: #ab8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5eeb",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 235
  },
  "hsl": {
    "h": 254.043,
    "s": 77.901,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58967,
    "c": 0.20306,
    "h": 289.5
  },
  "luminance": 0.18516
}

Semantic roles & 50–950 ramp

primary
#7F5EEB
secondary
#DFEBBA
accent
#DA0BAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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