#7B56F2#7B56F2

#7B56F2 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.9% C 0.222 H 288.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7B56F2
RGBrgb(123, 86, 242)
HSLhsl(254, 86%, 64%)
HSVhsv(254, 64%, 95%)
CMYKcmyk(49.2%, 64.5%, 0%, 5.1%)
CIE-LABlab(48.61, 52.30, -73.39)
CIE-LCHlch(48.61, 90.12, 305.47°)
OKLaboklab(57.94% 0.0699 -0.2104)
OKLCHoklch(57.94% 0.222 288.4)
XYZxyz(27.5185, 17.2761, 85.8718)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56F2 #CDF256
analogous
#567FF2 #7B56F2 #C956F2
triadic
#7B56F2 #F27B56 #56F27B
tetradic
#7B56F2 #F2567F #CDF256 #56F2C9
square
#7B56F2 #F2567F #CDF256 #56F2C9
split-complementary
#7B56F2 #F2C956 #7FF256
monochromatic
#380FBF #4F1DEE #7B56F2 #A78FF6 #D4C8FB

Accessibility & contrast

On white

4.71
#7B56F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7B56F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56F2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56F2#FFFFFF#000000##FFFFFF
##7B56F21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#517C9D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7b56f2;
/* rgb */ color: rgb(123, 86, 242);
/* oklch */ color: oklch(57.9% 0.222 288.4);
Tailwind
colors: {
  custom: {
    50: '#aa88f7',
    500: '#7b56f2',
    950: '#000000',
  },
}
SCSS
$custom: #7b56f2;
$custom-light: #aa88f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56f2",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 254.231,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57941,
    "c": 0.22171,
    "h": 288.4
  },
  "luminance": 0.17277
}

Semantic roles & 50–950 ramp

primary
#7B56F2
secondary
#E0EDB7
accent
#E203AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B56F2

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

Preview Lab → · Contrast checker → · Palette generator →

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