#7151DF#7151DF

#7151DF is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 54.8% C 0.205 H 288.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7151DF
RGBrgb(113, 81, 223)
HSLhsl(254, 69%, 60%)
HSVhsv(254, 64%, 87%)
CMYKcmyk(49.3%, 63.7%, 0%, 12.5%)
CIE-LABlab(45.25, 47.87, -68.17)
CIE-LCHlch(45.25, 83.30, 305.08°)
OKLaboklab(54.85% 0.0636 -0.1954)
OKLCHoklch(54.85% 0.205 288)
XYZxyz(23.0679, 14.7222, 71.4239)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151DF #BFDF51
analogous
#5178DF #7151DF #B851DF
triadic
#7151DF #DF7151 #51DF71
tetradic
#7151DF #DF5178 #BFDF51 #51DFB8
square
#7151DF #DF5178 #BFDF51 #51DFB8
split-complementary
#7151DF #DFB851 #78DF51
monochromatic
#381C99 #4B26CD #7151DF #9B85E9 #C5B8F2

Accessibility & contrast

On white

5.32
#7151DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7151DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151DF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151DF#FFFFFF#000000##FFFFFF
##7151DF1.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#0067DC
Tritanopia (blue-blind)
#4A7391
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7151df;
/* rgb */ color: rgb(113, 81, 223);
/* oklch */ color: oklch(54.8% 0.205 288.0);
Tailwind
colors: {
  custom: {
    50: '#a284ea',
    500: '#7151df',
    950: '#000000',
  },
}
SCSS
$custom: #7151df;
$custom-light: #a284ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7151df",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 253.521,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.54848,
    "c": 0.20545,
    "h": 288
  },
  "luminance": 0.14723
}

Semantic roles & 50–950 ramp

primary
#7151DF
secondary
#D5E1AA
accent
#EC3CC4
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151DF

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

Preview Lab → · Contrast checker → · Palette generator →

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