#7151CE#7151CE

#7151CE is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.6% C 0.184 H 290.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7151CE
RGBrgb(113, 81, 206)
HSLhsl(255, 56%, 56%)
HSVhsv(255, 61%, 81%)
CMYKcmyk(45.1%, 60.7%, 0%, 19.2%)
CIE-LABlab(44.02, 43.04, -60.45)
CIE-LCHlch(44.02, 74.20, 305.45°)
OKLaboklab(53.56% 0.0649 -0.1726)
OKLCHoklch(53.56% 0.184 290.6)
XYZxyz(20.8899, 13.8511, 59.9534)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151CE #AECE51
analogous
#5170CE #7151CE #B051CE
triadic
#7151CE #CE7151 #51CE71
tetradic
#7151CE #CE5170 #AECE51 #51CEB0
square
#7151CE #CE5170 #AECE51 #51CEB0
split-complementary
#7151CE #CEB051 #70CE51
monochromatic
#3C2480 #5232B0 #7151CE #9881DB #BFB1E9

Accessibility & contrast

On white

5.57
#7151CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7151CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151CE
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151CE#FFFFFF#000000##FFFFFF
##7151CE1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#0065CB
Tritanopia (blue-blind)
#556E88
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7151ce;
/* rgb */ color: rgb(113, 81, 206);
/* oklch */ color: oklch(53.6% 0.184 290.6);
Tailwind
colors: {
  custom: {
    50: '#a083de',
    500: '#7151ce',
    950: '#000000',
  },
}
SCSS
$custom: #7151ce;
$custom-light: #a083de;
$custom-dark: #000000;
JSON
{
  "hex": "#7151ce",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 255.36,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.53563,
    "c": 0.18444,
    "h": 290.6
  },
  "luminance": 0.13852
}

Semantic roles & 50–950 ramp

primary
#7151CE
secondary
#CAD7A4
accent
#DF48B9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7151CE

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

Preview Lab → · Contrast checker → · Palette generator →

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