#7F56BE#7F56BE

#7F56BE is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.6% C 0.158 H 299.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7F56BE
RGBrgb(127, 86, 190)
HSLhsl(264, 44%, 54%)
HSVhsv(264, 55%, 75%)
CMYKcmyk(33.2%, 54.7%, 0%, 25.5%)
CIE-LABlab(45.48, 39.06, -48.77)
CIE-LCHlch(45.48, 62.49, 308.69°)
OKLaboklab(54.63% 0.0774 -0.1379)
OKLCHoklch(54.63% 0.158 299.3)
XYZxyz(21.3722, 14.8851, 50.4524)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56BE #95BE56
analogous
#5661BE #7F56BE #B356BE
triadic
#7F56BE #BE7F56 #56BE7F
tetradic
#7F56BE #BE5661 #95BE56 #56BEB3
square
#7F56BE #BE5661 #95BE56 #56BEB3
split-complementary
#7F56BE #BEB356 #61BE56
monochromatic
#462B6F #613C9B #7F56BE #A082CF #C2AEE0

Accessibility & contrast

On white

5.28
#7F56BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7F56BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56BE
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56BE#FFFFFF#000000##FFFFFF
##7F56BE1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6CC2
Deuteranopia (green-blind)
#396BBC
Tritanopia (blue-blind)
#726B82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f56be;
/* rgb */ color: rgb(127, 86, 190);
/* oklch */ color: oklch(54.6% 0.158 299.3);
Tailwind
colors: {
  custom: {
    50: '#a787d2',
    500: '#7f56be',
    950: '#000000',
  },
}
SCSS
$custom: #7f56be;
$custom-light: #a787d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56be",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 263.654,
    "s": 44.444,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54631,
    "c": 0.15815,
    "h": 299.3
  },
  "luminance": 0.14885
}

Semantic roles & 50–950 ramp

primary
#7F56BE
secondary
#BDCEA2
accent
#D454A1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7F56BE

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

Preview Lab → · Contrast checker → · Palette generator →

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