#7151D3#7151D3

#7151D3 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.191 H 289.8°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7151D3
RGBrgb(113, 81, 211)
HSLhsl(255, 60%, 57%)
HSVhsv(255, 62%, 83%)
CMYKcmyk(46.4%, 61.6%, 0%, 17.3%)
CIE-LABlab(44.37, 44.46, -62.74)
CIE-LCHlch(44.37, 76.90, 305.32°)
OKLaboklab(53.93% 0.0646 -0.1794)
OKLCHoklch(53.93% 0.191 289.8)
XYZxyz(21.5070, 14.0979, 63.2034)
Luminance0.1410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151D3 #B3D351
analogous
#5172D3 #7151D3 #B251D3
triadic
#7151D3 #D37151 #51D371
tetradic
#7151D3 #D35172 #B3D351 #51D3B2
square
#7151D3 #D35172 #B3D351 #51D3B2
split-complementary
#7151D3 #D3B251 #72D351
monochromatic
#3B2287 #502FB8 #7151D3 #9982DF #C1B3EC

Accessibility & contrast

On white

5.50
#7151D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7151D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7151D3#FFFFFF#000000##FFFFFF
##7151D31.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#526F8A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7151d3;
/* rgb */ color: rgb(113, 81, 211);
/* oklch */ color: oklch(53.9% 0.191 289.8);
Tailwind
colors: {
  custom: {
    50: '#a183e1',
    500: '#7151d3',
    950: '#000000',
  },
}
SCSS
$custom: #7151d3;
$custom-light: #a183e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7151d3",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 254.769,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53933,
    "c": 0.19068,
    "h": 289.8
  },
  "luminance": 0.14099
}

Semantic roles & 50–950 ramp

primary
#7151D3
secondary
#CDDAA6
accent
#E345BC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7151D3

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

Preview Lab → · Contrast checker → · Palette generator →

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