#7151CF#7151CF

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

Color values

HEX#7151CF
RGBrgb(113, 81, 207)
HSLhsl(255, 57%, 56%)
HSVhsv(255, 61%, 81%)
CMYKcmyk(45.4%, 60.9%, 0%, 18.8%)
CIE-LABlab(44.09, 43.32, -60.91)
CIE-LCHlch(44.09, 74.74, 305.42°)
OKLaboklab(53.64% 0.0649 -0.174)
OKLCHoklch(53.64% 0.186 290.4)
XYZxyz(21.0118, 13.8998, 60.5952)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151CF #AFCF51
analogous
#5170CF #7151CF #B051CF
triadic
#7151CF #CF7151 #51CF71
tetradic
#7151CF #CF5170 #AFCF51 #51CFB0
square
#7151CF #CF5170 #AFCF51 #51CFB0
split-complementary
#7151CF #CFB051 #70CF51
monochromatic
#3C2482 #5231B2 #7151CF #9881DC #BFB1E9

Accessibility & contrast

On white

5.56
#7151CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7151CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151CF
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151CF#FFFFFF#000000##FFFFFF
##7151CF1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#0065CC
Tritanopia (blue-blind)
#546E88
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7151cf;
/* rgb */ color: rgb(113, 81, 207);
/* oklch */ color: oklch(53.6% 0.186 290.4);
Tailwind
colors: {
  custom: {
    50: '#a083de',
    500: '#7151cf',
    950: '#000000',
  },
}
SCSS
$custom: #7151cf;
$custom-light: #a083de;
$custom-dark: #000000;
JSON
{
  "hex": "#7151cf",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 255.238,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.53636,
    "c": 0.18569,
    "h": 290.4
  },
  "luminance": 0.13901
}

Semantic roles & 50–950 ramp

primary
#7151CF
secondary
#CBD8A4
accent
#E048B9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7151CF

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

Preview Lab → · Contrast checker → · Palette generator →

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