#7151BF#7151BF

#7151BF is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.5% C 0.165 H 293.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7151BF
RGBrgb(113, 81, 191)
HSLhsl(257, 46%, 53%)
HSVhsv(257, 58%, 75%)
CMYKcmyk(40.8%, 57.6%, 0%, 25.1%)
CIE-LABlab(43.00, 38.84, -53.41)
CIE-LCHlch(43.00, 66.04, 306.02°)
OKLaboklab(52.49% 0.0654 -0.1519)
OKLCHoklch(52.49% 0.165 293.3)
XYZxyz(19.1539, 13.1567, 50.8104)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151BF #9FBF51
analogous
#5168BF #7151BF #A851BF
triadic
#7151BF #BF7151 #51BF71
tetradic
#7151BF #BF5168 #9FBF51 #51BFA8
square
#7151BF #BF5168 #9FBF51 #51BFA8
split-complementary
#7151BF #BFA851 #68BF51
monochromatic
#3C286D #55399A #7151BF #967ECF #BAAAE0

Accessibility & contrast

On white

5.78
#7151BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7151BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151BF
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151BF#FFFFFF#000000##FFFFFF
##7151BF1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1067C3
Deuteranopia (green-blind)
#1E64BD
Tritanopia (blue-blind)
#5C6980
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7151bf;
/* rgb */ color: rgb(113, 81, 191);
/* oklch */ color: oklch(52.5% 0.165 293.3);
Tailwind
colors: {
  custom: {
    50: '#9f83d3',
    500: '#7151bf',
    950: '#000000',
  },
}
SCSS
$custom: #7151bf;
$custom-light: #9f83d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7151bf",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 257.455,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52491,
    "c": 0.16541,
    "h": 293.3
  },
  "luminance": 0.13157
}

Semantic roles & 50–950 ramp

primary
#7151BF
secondary
#C0CE9E
accent
#D652AF
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7151BF

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

Preview Lab → · Contrast checker → · Palette generator →

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