#7151AF#7151AF

#7151AF is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.4% C 0.145 H 296.7°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7151AF
RGBrgb(113, 81, 175)
HSLhsl(260, 37%, 50%)
HSVhsv(260, 54%, 69%)
CMYKcmyk(35.4%, 53.7%, 0%, 31.4%)
CIE-LABlab(41.99, 34.45, -45.66)
CIE-LCHlch(41.99, 57.20, 307.03°)
OKLaboklab(51.42% 0.065 -0.1292)
OKLCHoklch(51.42% 0.145 296.7)
XYZxyz(17.4884, 12.4905, 42.0386)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151AF #8FAF51
analogous
#5160AF #7151AF #A051AF
triadic
#7151AF #AF7151 #51AF71
tetradic
#7151AF #AF5160 #8FAF51 #51AFA0
square
#7151AF #AF5160 #8FAF51 #51AFA0
split-complementary
#7151AF #AFA051 #60AF51
monochromatic
#3B2A5C #563D85 #7151AF #937BC2 #B5A5D6

Accessibility & contrast

On white

6.00
#7151AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7151AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151AF
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151AF#FFFFFF#000000##FFFFFF
##7151AF1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B64B2
Deuteranopia (green-blind)
#3462AD
Tritanopia (blue-blind)
#636478
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7151af;
/* rgb */ color: rgb(113, 81, 175);
/* oklch */ color: oklch(51.4% 0.145 296.7);
Tailwind
colors: {
  custom: {
    50: '#9d83c7',
    500: '#7151af',
    950: '#000000',
  },
}
SCSS
$custom: #7151af;
$custom-light: #9d83c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7151af",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 260.426,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51418,
    "c": 0.14461,
    "h": 296.7
  },
  "luminance": 0.12491
}

Semantic roles & 50–950 ramp

primary
#7151AF
secondary
#B5C399
accent
#CD5BA6
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0F0A13
muted
#7E7C82

Preview Lab

Preview with #7151AF

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

Preview Lab → · Contrast checker → · Palette generator →

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