#7F51CA#7F51CA

#7F51CA is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.180 H 297.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7F51CA
RGBrgb(127, 81, 202)
HSLhsl(263, 53%, 55%)
HSVhsv(263, 60%, 79%)
CMYKcmyk(37.1%, 59.9%, 0%, 20.8%)
CIE-LABlab(45.17, 44.98, -56.22)
CIE-LCHlch(45.17, 72.00, 308.66°)
OKLaboklab(54.65% 0.0837 -0.1598)
OKLCHoklch(54.65% 0.18 297.6)
XYZxyz(22.3528, 14.6608, 57.5178)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51CA #9CCA51
analogous
#515FCA #7F51CA #BB51CA
triadic
#7F51CA #CA7F51 #51CA7F
tetradic
#7F51CA #CA515F #9CCA51 #51CABB
square
#7F51CA #CA515F #9CCA51 #51CABB
split-complementary
#7F51CA #CABB51 #5FCA51
monochromatic
#46257B #6134AA #7F51CA #A280D8 #C4AFE7

Accessibility & contrast

On white

5.34
#7F51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7F51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51CA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51CA#FFFFFF#000000##FFFFFF
##7F51CA1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#206AC7
Tritanopia (blue-blind)
#6E6B86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f51ca;
/* rgb */ color: rgb(127, 81, 202);
/* oklch */ color: oklch(54.6% 0.180 297.6);
Tailwind
colors: {
  custom: {
    50: '#a984db',
    500: '#7f51ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f51ca;
$custom-light: #a984db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51ca",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 262.81,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54646,
    "c": 0.18034,
    "h": 297.6
  },
  "luminance": 0.14661
}

Semantic roles & 50–950 ramp

primary
#7F51CA
secondary
#C1D5A2
accent
#DD4BA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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