#7958CA#7958CA

#7958CA is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.2% C 0.170 H 293.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7958CA
RGBrgb(121, 88, 202)
HSLhsl(257, 52%, 57%)
HSVhsv(257, 56%, 79%)
CMYKcmyk(40.1%, 56.4%, 0%, 20.8%)
CIE-LABlab(46.05, 39.68, -54.82)
CIE-LCHlch(46.05, 67.67, 305.90°)
OKLaboklab(55.15% 0.0674 -0.1558)
OKLCHoklch(55.15% 0.17 293.4)
XYZxyz(22.0327, 15.3081, 57.6596)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958CA #A9CA58
analogous
#5870CA #7958CA #B258CA
triadic
#7958CA #CA7958 #58CA79
tetradic
#7958CA #CA5870 #A9CA58 #58CAB2
square
#7958CA #CA5870 #A9CA58 #58CAB2
split-complementary
#7958CA #CAB258 #70CA58
monochromatic
#42287F #5937AE #7958CA #9E86D9 #C4B5E7

Accessibility & contrast

On white

5.17
#7958CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7958CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958CA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958CA#FFFFFF#000000##FFFFFF
##7958CA1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6ECE
Deuteranopia (green-blind)
#266BC7
Tritanopia (blue-blind)
#647088
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7958ca;
/* rgb */ color: rgb(121, 88, 202);
/* oklch */ color: oklch(55.2% 0.170 293.4);
Tailwind
colors: {
  custom: {
    50: '#a488db',
    500: '#7958ca',
    950: '#000000',
  },
}
SCSS
$custom: #7958ca;
$custom-light: #a488db;
$custom-dark: #000000;
JSON
{
  "hex": "#7958ca",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 257.368,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55154,
    "c": 0.16979,
    "h": 293.4
  },
  "luminance": 0.15309
}

Semantic roles & 50–950 ramp

primary
#7958CA
secondary
#C9D6A8
accent
#DB4DB2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7958CA

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

Preview Lab → · Contrast checker → · Palette generator →

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