#7151DC#7151DC

#7151DC is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.6% C 0.202 H 288.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7151DC
RGBrgb(113, 81, 220)
HSLhsl(254, 67%, 59%)
HSVhsv(254, 63%, 86%)
CMYKcmyk(48.6%, 63.2%, 0%, 13.7%)
CIE-LABlab(45.03, 47.01, -66.83)
CIE-LCHlch(45.03, 81.71, 305.13°)
OKLaboklab(54.62% 0.0639 -0.1914)
OKLCHoklch(54.62% 0.202 288.5)
XYZxyz(22.6670, 14.5619, 69.3127)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151DC #BCDC51
analogous
#5177DC #7151DC #B751DC
triadic
#7151DC #DC7151 #51DC71
tetradic
#7151DC #DC5177 #BCDC51 #51DCB7
square
#7151DC #DC5177 #BCDC51 #51DCB7
split-complementary
#7151DC #DCB751 #77DC51
monochromatic
#391E95 #4D28C8 #7151DC #9B84E6 #C4B7F0

Accessibility & contrast

On white

5.37
#7151DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7151DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151DC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151DC#FFFFFF#000000##FFFFFF
##7151DC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#0067D9
Tritanopia (blue-blind)
#4C728F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7151dc;
/* rgb */ color: rgb(113, 81, 220);
/* oklch */ color: oklch(54.6% 0.202 288.5);
Tailwind
colors: {
  custom: {
    50: '#a283e8',
    500: '#7151dc',
    950: '#000000',
  },
}
SCSS
$custom: #7151dc;
$custom-light: #a283e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7151dc",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 253.813,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.54616,
    "c": 0.20179,
    "h": 288.5
  },
  "luminance": 0.14563
}

Semantic roles & 50–950 ramp

primary
#7151DC
secondary
#D3E0A9
accent
#E93EC2
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7151DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva