#7D51CA#7D51CA

#7D51CA is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.180 H 296.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7D51CA
RGBrgb(125, 81, 202)
HSLhsl(262, 53%, 55%)
HSVhsv(262, 60%, 79%)
CMYKcmyk(38.1%, 59.9%, 0%, 20.8%)
CIE-LABlab(44.95, 44.53, -56.57)
CIE-LCHlch(44.95, 71.99, 308.21°)
OKLaboklab(54.44% 0.081 -0.1609)
OKLCHoklch(54.44% 0.18 296.7)
XYZxyz(22.0578, 14.5087, 57.5040)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51CA #9ECA51
analogous
#5161CA #7D51CA #B951CA
triadic
#7D51CA #CA7D51 #51CA7D
tetradic
#7D51CA #CA5161 #9ECA51 #51CAB9
square
#7D51CA #CA5161 #9ECA51 #51CAB9
split-complementary
#7D51CA #CAB951 #61CA51
monochromatic
#45257B #5F34AA #7D51CA #A080D8 #C3AFE7

Accessibility & contrast

On white

5.38
#7D51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7D51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51CA
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51CA#FFFFFF#000000##FFFFFF
##7D51CA1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1C69C7
Tritanopia (blue-blind)
#6B6B86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7d51ca;
/* rgb */ color: rgb(125, 81, 202);
/* oklch */ color: oklch(54.4% 0.180 296.7);
Tailwind
colors: {
  custom: {
    50: '#a784db',
    500: '#7d51ca',
    950: '#000000',
  },
}
SCSS
$custom: #7d51ca;
$custom-light: #a784db;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51ca",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 261.818,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54442,
    "c": 0.18011,
    "h": 296.7
  },
  "luminance": 0.14509
}

Semantic roles & 50–950 ramp

primary
#7D51CA
secondary
#C2D5A2
accent
#DD4BA8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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