#7B56CA#7B56CA

#7B56CA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.0% C 0.173 H 294.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7B56CA
RGBrgb(123, 86, 202)
HSLhsl(259, 52%, 56%)
HSVhsv(259, 57%, 79%)
CMYKcmyk(39.1%, 57.4%, 0%, 20.8%)
CIE-LABlab(45.81, 41.28, -55.20)
CIE-LCHlch(45.81, 68.92, 306.79°)
OKLaboklab(55.02% 0.0724 -0.1569)
OKLCHoklch(55.02% 0.173 294.8)
XYZxyz(22.1540, 15.1303, 57.6189)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56CA #A5CA56
analogous
#566BCA #7B56CA #B556CA
triadic
#7B56CA #CA7B56 #56CA7B
tetradic
#7B56CA #CA566B #A5CA56 #56CAB5
square
#7B56CA #CA566B #A5CA56 #56CAB5
split-complementary
#7B56CA #CAB556 #6BCA56
monochromatic
#43287E #5C36AD #7B56CA #9F85D9 #C4B3E7

Accessibility & contrast

On white

5.22
#7B56CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7B56CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56CA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56CA#FFFFFF#000000##FFFFFF
##7B56CA1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146ECE
Deuteranopia (green-blind)
#256BC7
Tritanopia (blue-blind)
#676F88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b56ca;
/* rgb */ color: rgb(123, 86, 202);
/* oklch */ color: oklch(55.0% 0.173 294.8);
Tailwind
colors: {
  custom: {
    50: '#a687db',
    500: '#7b56ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b56ca;
$custom-light: #a687db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56ca",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 259.138,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55023,
    "c": 0.1728,
    "h": 294.8
  },
  "luminance": 0.15131
}

Semantic roles & 50–950 ramp

primary
#7B56CA
secondary
#C7D6A6
accent
#DC4CAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B56CA

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

Preview Lab → · Contrast checker → · Palette generator →

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