#7151B2#7151B2

#7151B2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.6% C 0.149 H 296.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7151B2
RGBrgb(113, 81, 178)
HSLhsl(260, 39%, 51%)
HSVhsv(260, 54%, 70%)
CMYKcmyk(36.5%, 54.5%, 0%, 30.2%)
CIE-LABlab(42.17, 35.26, -47.13)
CIE-LCHlch(42.17, 58.86, 306.80°)
OKLaboklab(51.61% 0.0651 -0.1335)
OKLCHoklch(51.61% 0.149 296)
XYZxyz(17.7863, 12.6096, 43.6077)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151B2 #92B251
analogous
#5161B2 #7151B2 #A151B2
triadic
#7151B2 #B27151 #51B271
tetradic
#7151B2 #B25161 #92B251 #51B2A1
square
#7151B2 #B25161 #92B251 #51B2A1
split-complementary
#7151B2 #B2A151 #61B251
monochromatic
#3B2A5F #563D89 #7151B2 #947BC5 #B6A6D8

Accessibility & contrast

On white

5.96
#7151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7151B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151B2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151B2#FFFFFF#000000##FFFFFF
##7151B21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#62657A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7151b2;
/* rgb */ color: rgb(113, 81, 178);
/* oklch */ color: oklch(51.6% 0.149 296.0);
Tailwind
colors: {
  custom: {
    50: '#9d83c9',
    500: '#7151b2',
    950: '#000000',
  },
}
SCSS
$custom: #7151b2;
$custom-light: #9d83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7151b2",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 259.794,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51613,
    "c": 0.14854,
    "h": 296
  },
  "luminance": 0.1261
}

Semantic roles & 50–950 ramp

primary
#7151B2
secondary
#B7C59A
accent
#CF59A8
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0F0A13
muted
#7E7C82

Preview Lab

Preview with #7151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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