#7D56BF#7D56BF

#7D56BF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.5% C 0.159 H 298.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7D56BF
RGBrgb(125, 86, 191)
HSLhsl(262, 45%, 54%)
HSVhsv(262, 55%, 75%)
CMYKcmyk(34.6%, 55%, 0%, 25.1%)
CIE-LABlab(45.33, 38.82, -49.60)
CIE-LCHlch(45.33, 62.99, 308.05°)
OKLaboklab(54.49% 0.0749 -0.1404)
OKLCHoklch(54.49% 0.159 298.1)
XYZxyz(21.1869, 14.7769, 51.0161)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D56BF #98BF56
analogous
#5664BF #7D56BF #B256BF
triadic
#7D56BF #BF7D56 #56BF7D
tetradic
#7D56BF #BF5664 #98BF56 #56BFB2
square
#7D56BF #BF5664 #98BF56 #56BFB2
split-complementary
#7D56BF #BFB256 #64BF56
monochromatic
#442A70 #5F3B9D #7D56BF #9F82D0 #C1AFE1

Accessibility & contrast

On white

5.31
#7D56BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7D56BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D56BF
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D56BF#FFFFFF#000000##FFFFFF
##7D56BF1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296BC3
Deuteranopia (green-blind)
#366ABD
Tritanopia (blue-blind)
#6E6B82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d56bf;
/* rgb */ color: rgb(125, 86, 191);
/* oklch */ color: oklch(54.5% 0.159 298.1);
Tailwind
colors: {
  custom: {
    50: '#a687d3',
    500: '#7d56bf',
    950: '#000000',
  },
}
SCSS
$custom: #7d56bf;
$custom-light: #a687d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d56bf",
  "rgb": {
    "r": 125,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 262.286,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54492,
    "c": 0.15912,
    "h": 298.1
  },
  "luminance": 0.14777
}

Semantic roles & 50–950 ramp

primary
#7D56BF
secondary
#BECFA2
accent
#D553A5
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7D56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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