#7F51DF#7F51DF

#7F51DF is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.2% C 0.205 H 293.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7F51DF
RGBrgb(127, 81, 223)
HSLhsl(259, 69%, 60%)
HSVhsv(259, 64%, 87%)
CMYKcmyk(43%, 63.7%, 0%, 12.5%)
CIE-LABlab(46.61, 50.53, -65.90)
CIE-LCHlch(46.61, 83.05, 307.48°)
OKLaboklab(56.15% 0.0823 -0.1882)
OKLCHoklch(56.15% 0.205 293.6)
XYZxyz(25.0105, 15.7239, 71.5150)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51DF #B1DF51
analogous
#516ADF #7F51DF #C651DF
triadic
#7F51DF #DF7F51 #51DF7F
tetradic
#7F51DF #DF516A #B1DF51 #51DFC6
square
#7F51DF #DF516A #B1DF51 #51DFC6
split-complementary
#7F51DF #DFC651 #6ADF51
monochromatic
#451C99 #5C26CD #7F51DF #A585E9 #CBB8F2

Accessibility & contrast

On white

5.07
#7F51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7F51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51DF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51DF#FFFFFF#000000##FFFFFF
##7F51DF1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#647291
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f51df;
/* rgb */ color: rgb(127, 81, 223);
/* oklch */ color: oklch(56.2% 0.205 293.6);
Tailwind
colors: {
  custom: {
    50: '#ab84ea',
    500: '#7f51df',
    950: '#000000',
  },
}
SCSS
$custom: #7f51df;
$custom-light: #ab84ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51df",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 259.437,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56153,
    "c": 0.20543,
    "h": 293.6
  },
  "luminance": 0.15725
}

Semantic roles & 50–950 ramp

primary
#7F51DF
secondary
#D0E1AA
accent
#EC3CB3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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