#7955EB#7955EB

#7955EB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.215 H 288.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7955EB
RGBrgb(121, 85, 235)
HSLhsl(254, 79%, 63%)
HSVhsv(254, 64%, 92%)
CMYKcmyk(48.5%, 63.8%, 0%, 7.8%)
CIE-LABlab(47.70, 50.53, -70.94)
CIE-LCHlch(47.70, 87.10, 305.46°)
OKLaboklab(57.08% 0.069 -0.2033)
OKLCHoklch(57.08% 0.215 288.8)
XYZxyz(26.1247, 16.5590, 80.4008)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7955EB #C7EB55
analogous
#557CEB #7955EB #C455EB
triadic
#7955EB #EB7955 #55EB79
tetradic
#7955EB #EB557C #C7EB55 #55EBC4
square
#7955EB #EB557C #C7EB55 #55EBC4
split-complementary
#7955EB #EBC455 #7CEB55
monochromatic
#3A15B1 #4E1EE5 #7955EB #A48CF1 #CFC3F8

Accessibility & contrast

On white

4.87
#7955EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7955EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7955EB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7955EB#FFFFFF#000000##FFFFFF
##7955EB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#006DE8
Tritanopia (blue-blind)
#527998
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7955eb;
/* rgb */ color: rgb(121, 85, 235);
/* oklch */ color: oklch(57.1% 0.215 288.8);
Tailwind
colors: {
  custom: {
    50: '#a887f2',
    500: '#7955eb',
    950: '#000000',
  },
}
SCSS
$custom: #7955eb;
$custom-light: #a887f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7955eb",
  "rgb": {
    "r": 121,
    "g": 85,
    "b": 235
  },
  "hsl": {
    "h": 254.4,
    "s": 78.947,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57078,
    "c": 0.21466,
    "h": 288.8
  },
  "luminance": 0.1656
}

Semantic roles & 50–950 ramp

primary
#7955EB
secondary
#DCE9B3
accent
#DB0AA9
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7955EB

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

Preview Lab → · Contrast checker → · Palette generator →

#7955EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva