#7B64C8#7B64C8

#7B64C8 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.3% C 0.150 H 291.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7B64C8
RGBrgb(123, 100, 200)
HSLhsl(254, 48%, 59%)
HSVhsv(254, 50%, 78%)
CMYKcmyk(38.5%, 50%, 0%, 21.6%)
CIE-LABlab(48.88, 32.60, -49.13)
CIE-LCHlch(48.88, 58.96, 303.57°)
OKLaboklab(57.26% 0.0549 -0.1391)
OKLCHoklch(57.26% 0.15 291.6)
XYZxyz(23.1481, 17.4948, 56.7896)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B64C8 #B1C864
analogous
#647FC8 #7B64C8 #AD64C8
triadic
#7B64C8 #C87B64 #64C87B
tetradic
#7B64C8 #C8647F #B1C864 #64C8AD
square
#7B64C8 #C8647F #B1C864 #64C8AD
split-complementary
#7B64C8 #C8AD64 #7FC864
monochromatic
#422F83 #593FB0 #7B64C8 #A191D8 #C8BEE8

Accessibility & contrast

On white

4.67
#7B64C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7B64C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B64C8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B64C8#FFFFFF#000000##FFFFFF
##7B64C81.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D76CC
Deuteranopia (green-blind)
#4072C6
Tritanopia (blue-blind)
#67788D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b64c8;
/* rgb */ color: rgb(123, 100, 200);
/* oklch */ color: oklch(57.3% 0.150 291.6);
Tailwind
colors: {
  custom: {
    50: '#a590d9',
    500: '#7b64c8',
    950: '#000000',
  },
}
SCSS
$custom: #7b64c8;
$custom-light: #a590d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b64c8",
  "rgb": {
    "r": 123,
    "g": 100,
    "b": 200
  },
  "hsl": {
    "h": 253.8,
    "s": 47.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57256,
    "c": 0.14953,
    "h": 291.6
  },
  "luminance": 0.17495
}

Semantic roles & 50–950 ramp

primary
#7B64C8
secondary
#CFD8B0
accent
#D751B8
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7B64C8

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

Preview Lab → · Contrast checker → · Palette generator →

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