#7958EA#7958EA

#7958EA is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.4% C 0.210 H 288.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7958EA
RGBrgb(121, 88, 234)
HSLhsl(254, 78%, 63%)
HSVhsv(254, 62%, 92%)
CMYKcmyk(48.3%, 62.4%, 0%, 8.2%)
CIE-LABlab(48.24, 48.60, -69.50)
CIE-LCHlch(48.24, 84.81, 304.96°)
OKLaboklab(57.45% 0.0661 -0.199)
OKLCHoklch(57.45% 0.21 288.4)
XYZxyz(26.2219, 16.9838, 79.7225)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958EA #C9EA58
analogous
#5880EA #7958EA #C258EA
triadic
#7958EA #EA7958 #58EA79
tetradic
#7958EA #EA5880 #C9EA58 #58EAC2
square
#7958EA #EA5880 #C9EA58 #58EAC2
split-complementary
#7958EA #EAC258 #80EA58
monochromatic
#3916B1 #4D22E3 #7958EA #A58EF1 #D0C5F8

Accessibility & contrast

On white

4.78
#7958EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7958EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958EA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958EA#FFFFFF#000000##FFFFFF
##7958EA1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#006FE7
Tritanopia (blue-blind)
#537B99
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7958ea;
/* rgb */ color: rgb(121, 88, 234);
/* oklch */ color: oklch(57.4% 0.210 288.4);
Tailwind
colors: {
  custom: {
    50: '#a889f2',
    500: '#7958ea',
    950: '#000000',
  },
}
SCSS
$custom: #7958ea;
$custom-light: #a889f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7958ea",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 234
  },
  "hsl": {
    "h": 253.562,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57447,
    "c": 0.20972,
    "h": 288.4
  },
  "luminance": 0.16985
}

Semantic roles & 50–950 ramp

primary
#7958EA
secondary
#DDE9B5
accent
#DA0CAB
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7958EA

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

Preview Lab → · Contrast checker → · Palette generator →

#7958EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva