#7151B0#7151B0

#7151B0 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.5% C 0.146 H 296.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7151B0
RGBrgb(113, 81, 176)
HSLhsl(260, 38%, 50%)
HSVhsv(260, 54%, 69%)
CMYKcmyk(35.8%, 54%, 0%, 31%)
CIE-LABlab(42.05, 34.72, -46.15)
CIE-LCHlch(42.05, 57.75, 306.95°)
OKLaboklab(51.48% 0.065 -0.1306)
OKLCHoklch(51.48% 0.146 296.5)
XYZxyz(17.5870, 12.5299, 42.5578)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151B0 #90B051
analogous
#5160B0 #7151B0 #A151B0
triadic
#7151B0 #B07151 #51B071
tetradic
#7151B0 #B05160 #90B051 #51B0A1
square
#7151B0 #B05160 #90B051 #51B0A1
split-complementary
#7151B0 #B0A151 #60B051
monochromatic
#3B2A5D #563D87 #7151B0 #937BC3 #B6A5D6

Accessibility & contrast

On white

5.99
#7151B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7151B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151B0
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151B0#FFFFFF#000000##FFFFFF
##7151B01.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A64B3
Deuteranopia (green-blind)
#3362AE
Tritanopia (blue-blind)
#626479
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7151b0;
/* rgb */ color: rgb(113, 81, 176);
/* oklch */ color: oklch(51.5% 0.146 296.5);
Tailwind
colors: {
  custom: {
    50: '#9d83c8',
    500: '#7151b0',
    950: '#000000',
  },
}
SCSS
$custom: #7151b0;
$custom-light: #9d83c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7151b0",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 176
  },
  "hsl": {
    "h": 260.211,
    "s": 37.549,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51482,
    "c": 0.14592,
    "h": 296.5
  },
  "luminance": 0.1253
}

Semantic roles & 50–950 ramp

primary
#7151B0
secondary
#B5C499
accent
#CE5AA7
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0F0A13
muted
#7E7C82

Preview Lab

Preview with #7151B0

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

Preview Lab → · Contrast checker → · Palette generator →

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