#7B51DD#7B51DD

#7B51DD is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.6% C 0.203 H 292.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7B51DD
RGBrgb(123, 81, 221)
HSLhsl(258, 67%, 59%)
HSVhsv(258, 63%, 87%)
CMYKcmyk(44.3%, 63.3%, 0%, 13.3%)
CIE-LABlab(46.06, 49.21, -65.67)
CIE-LCHlch(46.06, 82.06, 306.85°)
OKLaboklab(55.62% 0.0771 -0.1877)
OKLCHoklch(55.62% 0.203 292.3)
XYZxyz(24.1584, 15.3155, 70.0759)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51DD #B3DD51
analogous
#516DDD #7B51DD #C151DD
triadic
#7B51DD #DD7B51 #51DD7B
tetradic
#7B51DD #DD516D #B3DD51 #51DDC1
square
#7B51DD #DD516D #B3DD51 #51DDC1
split-complementary
#7B51DD #DDC151 #6DDD51
monochromatic
#421D96 #5827C9 #7B51DD #A284E7 #C9B7F1

Accessibility & contrast

On white

5.17
#7B51DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7B51DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51DD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51DD#FFFFFF#000000##FFFFFF
##7B51DD1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#5E7290
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b51dd;
/* rgb */ color: rgb(123, 81, 221);
/* oklch */ color: oklch(55.6% 0.203 292.3);
Tailwind
colors: {
  custom: {
    50: '#a884e8',
    500: '#7b51dd',
    950: '#000000',
  },
}
SCSS
$custom: #7b51dd;
$custom-light: #a884e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51dd",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 258,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55618,
    "c": 0.20291,
    "h": 292.3
  },
  "luminance": 0.15316
}

Semantic roles & 50–950 ramp

primary
#7B51DD
secondary
#D0E0AA
accent
#EA3EB6
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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