#7F55CA#7F55CA

#7F55CA is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.3% C 0.175 H 296.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7F55CA
RGBrgb(127, 85, 202)
HSLhsl(262, 52%, 56%)
HSVhsv(262, 58%, 79%)
CMYKcmyk(37.1%, 57.9%, 0%, 20.8%)
CIE-LABlab(46.01, 42.76, -54.86)
CIE-LCHlch(46.01, 69.56, 307.93°)
OKLaboklab(55.26% 0.0789 -0.1558)
OKLCHoklch(55.26% 0.175 296.9)
XYZxyz(22.6589, 15.2729, 57.6198)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F55CA #A0CA55
analogous
#5566CA #7F55CA #B955CA
triadic
#7F55CA #CA7F55 #55CA7F
tetradic
#7F55CA #CA5566 #A0CA55 #55CAB9
square
#7F55CA #CA5566 #A0CA55 #55CAB9
split-complementary
#7F55CA #CAB955 #66CA55
monochromatic
#46277D #6036AC #7F55CA #A284D9 #C5B2E7

Accessibility & contrast

On white

5.18
#7F55CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7F55CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F55CA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F55CA#FFFFFF#000000##FFFFFF
##7F55CA1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146DCE
Deuteranopia (green-blind)
#286CC7
Tritanopia (blue-blind)
#6D6E87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f55ca;
/* rgb */ color: rgb(127, 85, 202);
/* oklch */ color: oklch(55.3% 0.175 296.9);
Tailwind
colors: {
  custom: {
    50: '#a986db',
    500: '#7f55ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f55ca;
$custom-light: #a986db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f55ca",
  "rgb": {
    "r": 127,
    "g": 85,
    "b": 202
  },
  "hsl": {
    "h": 261.538,
    "s": 52.466,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5526,
    "c": 0.17462,
    "h": 296.9
  },
  "luminance": 0.15273
}

Semantic roles & 50–950 ramp

primary
#7F55CA
secondary
#C4D5A5
accent
#DC4CA8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F55CA

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

Preview Lab → · Contrast checker → · Palette generator →

#7F55CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva