#7151BC#7151BC

#7151BC is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.3% C 0.162 H 293.9°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7151BC
RGBrgb(113, 81, 188)
HSLhsl(258, 44%, 53%)
HSVhsv(258, 57%, 74%)
CMYKcmyk(39.9%, 56.9%, 0%, 26.3%)
CIE-LABlab(42.80, 38.01, -51.97)
CIE-LCHlch(42.80, 64.39, 306.18°)
OKLaboklab(52.28% 0.0654 -0.1477)
OKLCHoklch(52.28% 0.162 293.9)
XYZxyz(18.8272, 13.0260, 49.0895)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151BC #9CBC51
analogous
#5166BC #7151BC #A651BC
triadic
#7151BC #BC7151 #51BC71
tetradic
#7151BC #BC5166 #9CBC51 #51BCA6
square
#7151BC #BC5166 #9CBC51 #51BCA6
split-complementary
#7151BC #BCA651 #66BC51
monochromatic
#3C296A #553A96 #7151BC #957DCD #B9A9DE

Accessibility & contrast

On white

5.82
#7151BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7151BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151BC
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151BC#FFFFFF#000000##FFFFFF
##7151BC1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1766C0
Deuteranopia (green-blind)
#2363BA
Tritanopia (blue-blind)
#5E687F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7151bc;
/* rgb */ color: rgb(113, 81, 188);
/* oklch */ color: oklch(52.3% 0.162 293.9);
Tailwind
colors: {
  custom: {
    50: '#9e83d1',
    500: '#7151bc',
    950: '#000000',
  },
}
SCSS
$custom: #7151bc;
$custom-light: #9e83d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7151bc",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 257.944,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52284,
    "c": 0.16154,
    "h": 293.9
  },
  "luminance": 0.13026
}

Semantic roles & 50–950 ramp

primary
#7151BC
secondary
#BECC9D
accent
#D454AE
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7151BC

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

Preview Lab → · Contrast checker → · Palette generator →

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