#7F56BF#7F56BF

#7F56BF is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.7% C 0.159 H 299.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7F56BF
RGBrgb(127, 86, 191)
HSLhsl(263, 45%, 54%)
HSVhsv(263, 55%, 75%)
CMYKcmyk(33.5%, 55%, 0%, 25.1%)
CIE-LABlab(45.54, 39.32, -49.25)
CIE-LCHlch(45.54, 63.03, 308.60°)
OKLaboklab(54.7% 0.0775 -0.1393)
OKLCHoklch(54.7% 0.159 299.1)
XYZxyz(21.4819, 14.9290, 51.0299)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56BF #96BF56
analogous
#5662BF #7F56BF #B456BF
triadic
#7F56BF #BF7F56 #56BF7F
tetradic
#7F56BF #BF5662 #96BF56 #56BFB4
square
#7F56BF #BF5662 #96BF56 #56BFB4
split-complementary
#7F56BF #BFB456 #62BF56
monochromatic
#462A70 #613B9D #7F56BF #A182D0 #C2AFE1

Accessibility & contrast

On white

5.27
#7F56BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7F56BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56BF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56BF#FFFFFF#000000##FFFFFF
##7F56BF1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6CC3
Deuteranopia (green-blind)
#386BBD
Tritanopia (blue-blind)
#716B82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f56bf;
/* rgb */ color: rgb(127, 86, 191);
/* oklch */ color: oklch(54.7% 0.159 299.1);
Tailwind
colors: {
  custom: {
    50: '#a887d3',
    500: '#7f56bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f56bf;
$custom-light: #a887d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56bf",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 263.429,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54695,
    "c": 0.15941,
    "h": 299.1
  },
  "luminance": 0.14929
}

Semantic roles & 50–950 ramp

primary
#7F56BF
secondary
#BDCFA2
accent
#D553A2
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7F56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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