#7151E2#7151E2

#7151E2 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.1% C 0.209 H 287.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7151E2
RGBrgb(113, 81, 226)
HSLhsl(253, 71%, 60%)
HSVhsv(253, 64%, 89%)
CMYKcmyk(50%, 64.2%, 0%, 11.4%)
CIE-LABlab(45.48, 48.73, -69.51)
CIE-LCHlch(45.48, 84.88, 305.03°)
OKLaboklab(55.08% 0.0633 -0.1993)
OKLCHoklch(55.08% 0.209 287.6)
XYZxyz(23.4759, 14.8855, 73.5730)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151E2 #C2E251
analogous
#517AE2 #7151E2 #B951E2
triadic
#7151E2 #E27151 #51E271
tetradic
#7151E2 #E2517A #C2E251 #51E2B9
square
#7151E2 #E2517A #C2E251 #51E2B9
split-complementary
#7151E2 #E2B951 #7AE251
monochromatic
#371A9E #4A23D3 #7151E2 #9C85EB #C7BAF3

Accessibility & contrast

On white

5.28
#7151E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7151E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7151E2#FFFFFF#000000##FFFFFF
##7151E21.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#0068DF
Tritanopia (blue-blind)
#487492
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7151e2;
/* rgb */ color: rgb(113, 81, 226);
/* oklch */ color: oklch(55.1% 0.209 287.6);
Tailwind
colors: {
  custom: {
    50: '#a384ec',
    500: '#7151e2',
    950: '#000000',
  },
}
SCSS
$custom: #7151e2;
$custom-light: #a384ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7151e2",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 253.241,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.55082,
    "c": 0.2091,
    "h": 287.6
  },
  "luminance": 0.14887
}

Semantic roles & 50–950 ramp

primary
#7151E2
secondary
#D7E3AC
accent
#D312A9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151E2

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

Preview Lab → · Contrast checker → · Palette generator →

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