#7F56CB#7F56CB

#7F56CB is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.5% C 0.174 H 296.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7F56CB
RGBrgb(127, 86, 203)
HSLhsl(261, 53%, 57%)
HSVhsv(261, 58%, 80%)
CMYKcmyk(37.4%, 57.6%, 0%, 20.4%)
CIE-LABlab(46.28, 42.47, -54.99)
CIE-LCHlch(46.28, 69.48, 307.68°)
OKLaboklab(55.48% 0.0777 -0.1562)
OKLCHoklch(55.48% 0.174 296.4)
XYZxyz(22.8569, 15.4790, 58.2718)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56CB #A2CB56
analogous
#5668CB #7F56CB #BA56CB
triadic
#7F56CB #CB7F56 #56CB7F
tetradic
#7F56CB #CB5668 #A2CB56 #56CBBA
square
#7F56CB #CB5668 #A2CB56 #56CBBA
split-complementary
#7F56CB #CBBA56 #68CB56
monochromatic
#46277F #6036AE #7F56CB #A285D9 #C6B4E8

Accessibility & contrast

On white

5.13
#7F56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7F56CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56CB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56CB#FFFFFF#000000##FFFFFF
##7F56CB1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166ECF
Deuteranopia (green-blind)
#296CC8
Tritanopia (blue-blind)
#6D6F88
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f56cb;
/* rgb */ color: rgb(127, 86, 203);
/* oklch */ color: oklch(55.5% 0.174 296.4);
Tailwind
colors: {
  custom: {
    50: '#a987db',
    500: '#7f56cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f56cb;
$custom-light: #a987db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56cb",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 261.026,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55484,
    "c": 0.17441,
    "h": 296.4
  },
  "luminance": 0.15479
}

Semantic roles & 50–950 ramp

primary
#7F56CB
secondary
#C6D6A6
accent
#DC4BAA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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