#7151AA#7151AA

#7151AA is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.1% C 0.138 H 297.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7151AA
RGBrgb(113, 81, 170)
HSLhsl(262, 35%, 49%)
HSVhsv(262, 52%, 67%)
CMYKcmyk(33.5%, 52.4%, 0%, 33.3%)
CIE-LABlab(41.69, 33.10, -43.18)
CIE-LCHlch(41.69, 54.41, 307.47°)
OKLaboklab(51.1% 0.0647 -0.1219)
OKLCHoklch(51.1% 0.138 297.9)
XYZxyz(17.0064, 12.2977, 39.5001)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151AA #8AAA51
analogous
#515EAA #7151AA #9E51AA
triadic
#7151AA #AA7151 #51AA71
tetradic
#7151AA #AA515E #8AAA51 #51AA9E
square
#7151AA #AA515E #8AAA51 #51AA9E
split-complementary
#7151AA #AA9E51 #5EAA51
monochromatic
#3A2A57 #553D81 #7151AA #9279BF #B4A2D3

Accessibility & contrast

On white

6.07
#7151AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7151AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7151AA#FFFFFF#000000##FFFFFF
##7151AA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AD
Deuteranopia (green-blind)
#3861A8
Tritanopia (blue-blind)
#656276
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7151aa;
/* rgb */ color: rgb(113, 81, 170);
/* oklch */ color: oklch(51.1% 0.138 297.9);
Tailwind
colors: {
  custom: {
    50: '#9d83c4',
    500: '#7151aa',
    950: '#000000',
  },
}
SCSS
$custom: #7151aa;
$custom-light: #9d83c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7151aa",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 261.573,
    "s": 35.458,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51098,
    "c": 0.13801,
    "h": 297.9
  },
  "luminance": 0.12298
}

Semantic roles & 50–950 ramp

primary
#7151AA
secondary
#B1C097
accent
#CB5CA4
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0F0A13
muted
#7E7C82

Preview Lab

Preview with #7151AA

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

Preview Lab → · Contrast checker → · Palette generator →

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