#7151DE#7151DE

#7151DE is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 54.8% C 0.204 H 288.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7151DE
RGBrgb(113, 81, 222)
HSLhsl(254, 68%, 59%)
HSVhsv(254, 64%, 87%)
CMYKcmyk(49.1%, 63.5%, 0%, 12.9%)
CIE-LABlab(45.18, 47.58, -67.72)
CIE-LCHlch(45.18, 82.77, 305.09°)
OKLaboklab(54.77% 0.0637 -0.194)
OKLCHoklch(54.77% 0.204 288.2)
XYZxyz(22.9335, 14.6685, 70.7160)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151DE #BEDE51
analogous
#5178DE #7151DE #B851DE
triadic
#7151DE #DE7151 #51DE71
tetradic
#7151DE #DE5178 #BEDE51 #51DEB8
square
#7151DE #DE5178 #BEDE51 #51DEB8
split-complementary
#7151DE #DEB851 #78DE51
monochromatic
#391D98 #4C27CB #7151DE #9B84E8 #C5B8F2

Accessibility & contrast

On white

5.34
#7151DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7151DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7151DE#FFFFFF#000000##FFFFFF
##7151DE1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE2
Deuteranopia (green-blind)
#0067DB
Tritanopia (blue-blind)
#4B7390
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7151de;
/* rgb */ color: rgb(113, 81, 222);
/* oklch */ color: oklch(54.8% 0.204 288.2);
Tailwind
colors: {
  custom: {
    50: '#a283e9',
    500: '#7151de',
    950: '#000000',
  },
}
SCSS
$custom: #7151de;
$custom-light: #a283e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7151de",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 253.617,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5477,
    "c": 0.20423,
    "h": 288.2
  },
  "luminance": 0.14669
}

Semantic roles & 50–950 ramp

primary
#7151DE
secondary
#D4E1AA
accent
#EB3DC3
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151DE

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

Preview Lab → · Contrast checker → · Palette generator →

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