#7B51DB#7B51DB

#7B51DB is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.5% C 0.201 H 292.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7B51DB
RGBrgb(123, 81, 219)
HSLhsl(258, 66%, 59%)
HSVhsv(258, 63%, 86%)
CMYKcmyk(43.8%, 63%, 0%, 14.1%)
CIE-LABlab(45.92, 48.66, -64.76)
CIE-LCHlch(45.92, 81.01, 306.92°)
OKLaboklab(55.47% 0.0773 -0.185)
OKLCHoklch(55.47% 0.201 292.7)
XYZxyz(23.8935, 15.2096, 68.6809)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51DB #B1DB51
analogous
#516CDB #7B51DB #C051DB
triadic
#7B51DB #DB7B51 #51DB7B
tetradic
#7B51DB #DB516C #B1DB51 #51DBC0
square
#7B51DB #DB516C #B1DB51 #51DBC0
split-complementary
#7B51DB #DBC051 #6CDB51
monochromatic
#421E93 #5929C6 #7B51DB #A184E5 #C8B6F0

Accessibility & contrast

On white

5.20
#7B51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7B51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51DB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51DB#FFFFFF#000000##FFFFFF
##7B51DB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006AD8
Tritanopia (blue-blind)
#60718F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b51db;
/* rgb */ color: rgb(123, 81, 219);
/* oklch */ color: oklch(55.5% 0.201 292.7);
Tailwind
colors: {
  custom: {
    50: '#a884e7',
    500: '#7b51db',
    950: '#000000',
  },
}
SCSS
$custom: #7b51db;
$custom-light: #a884e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51db",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 258.261,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55468,
    "c": 0.20051,
    "h": 292.7
  },
  "luminance": 0.1521
}

Semantic roles & 50–950 ramp

primary
#7B51DB
secondary
#CFDFA9
accent
#E93FB5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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