#7955CC#7955CC

#7955CC is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.8% C 0.177 H 293.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7955CC
RGBrgb(121, 85, 204)
HSLhsl(258, 54%, 57%)
HSVhsv(258, 58%, 80%)
CMYKcmyk(40.7%, 58.3%, 0%, 20%)
CIE-LABlab(45.53, 41.94, -56.82)
CIE-LCHlch(45.53, 70.62, 306.43°)
OKLaboklab(54.81% 0.071 -0.1617)
OKLCHoklch(54.81% 0.177 293.7)
XYZxyz(22.0298, 14.9210, 58.8344)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7955CC #A8CC55
analogous
#556DCC #7955CC #B455CC
triadic
#7955CC #CC7955 #55CC79
tetradic
#7955CC #CC556D #A8CC55 #55CCB4
square
#7955CC #CC556D #A8CC55 #55CCB4
split-complementary
#7955CC #CCB455 #6DCC55
monochromatic
#422680 #5A35AF #7955CC #9E84DA #C3B3E8

Accessibility & contrast

On white

5.27
#7955CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7955CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7955CC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7955CC#FFFFFF#000000##FFFFFF
##7955CC1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036DD0
Deuteranopia (green-blind)
#1B6AC9
Tritanopia (blue-blind)
#636F88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7955cc;
/* rgb */ color: rgb(121, 85, 204);
/* oklch */ color: oklch(54.8% 0.177 293.7);
Tailwind
colors: {
  custom: {
    50: '#a586dc',
    500: '#7955cc',
    950: '#000000',
  },
}
SCSS
$custom: #7955cc;
$custom-light: #a586dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7955cc",
  "rgb": {
    "r": 121,
    "g": 85,
    "b": 204
  },
  "hsl": {
    "h": 258.151,
    "s": 53.846,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54807,
    "c": 0.17662,
    "h": 293.7
  },
  "luminance": 0.14922
}

Semantic roles & 50–950 ramp

primary
#7955CC
secondary
#C8D7A6
accent
#DD4BB1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7955CC

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

Preview Lab → · Contrast checker → · Palette generator →

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