#7958CB#7958CB

#7958CB is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.2% C 0.171 H 293.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7958CB
RGBrgb(121, 88, 203)
HSLhsl(257, 53%, 57%)
HSVhsv(257, 57%, 80%)
CMYKcmyk(40.4%, 56.7%, 0%, 20.4%)
CIE-LABlab(46.12, 39.95, -55.29)
CIE-LCHlch(46.12, 68.21, 305.85°)
OKLaboklab(55.22% 0.0674 -0.1572)
OKLCHoklch(55.22% 0.171 293.2)
XYZxyz(22.1515, 15.3556, 58.2852)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958CB #AACB58
analogous
#5871CB #7958CB #B258CB
triadic
#7958CB #CB7958 #58CB79
tetradic
#7958CB #CB5871 #AACB58 #58CBB2
square
#7958CB #CB5871 #AACB58 #58CBB2
split-complementary
#7958CB #CBB258 #71CB58
monochromatic
#412881 #5937AF #7958CB #9E87DA #C4B5E8

Accessibility & contrast

On white

5.16
#7958CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7958CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958CB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958CB#FFFFFF#000000##FFFFFF
##7958CB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196FCF
Deuteranopia (green-blind)
#256BC8
Tritanopia (blue-blind)
#637189
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7958cb;
/* rgb */ color: rgb(121, 88, 203);
/* oklch */ color: oklch(55.2% 0.171 293.2);
Tailwind
colors: {
  custom: {
    50: '#a588db',
    500: '#7958cb',
    950: '#000000',
  },
}
SCSS
$custom: #7958cb;
$custom-light: #a588db;
$custom-dark: #000000;
JSON
{
  "hex": "#7958cb",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 257.217,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55221,
    "c": 0.17107,
    "h": 293.2
  },
  "luminance": 0.15356
}

Semantic roles & 50–950 ramp

primary
#7958CB
secondary
#C9D7A8
accent
#DC4CB3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7958CB

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

Preview Lab → · Contrast checker → · Palette generator →

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