#7151DB#7151DB

#7151DB is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.5% C 0.201 H 288.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7151DB
RGBrgb(113, 81, 219)
HSLhsl(254, 66%, 59%)
HSVhsv(254, 63%, 86%)
CMYKcmyk(48.4%, 63%, 0%, 14.1%)
CIE-LABlab(44.95, 46.73, -66.38)
CIE-LCHlch(44.95, 81.18, 305.15°)
OKLaboklab(54.54% 0.064 -0.1901)
OKLCHoklch(54.54% 0.201 288.6)
XYZxyz(22.5350, 14.5091, 68.6172)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151DB #BBDB51
analogous
#5176DB #7151DB #B651DB
triadic
#7151DB #DB7151 #51DB71
tetradic
#7151DB #DB5176 #BBDB51 #51DBB6
square
#7151DB #DB5176 #BBDB51 #51DBB6
split-complementary
#7151DB #DBB651 #76DB51
monochromatic
#3A1E93 #4D29C6 #7151DB #9A84E5 #C4B6F0

Accessibility & contrast

On white

5.38
#7151DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7151DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7151DB#FFFFFF#000000##FFFFFF
##7151DB1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#4D728F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7151db;
/* rgb */ color: rgb(113, 81, 219);
/* oklch */ color: oklch(54.5% 0.201 288.6);
Tailwind
colors: {
  custom: {
    50: '#a283e7',
    500: '#7151db',
    950: '#000000',
  },
}
SCSS
$custom: #7151db;
$custom-light: #a283e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7151db",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 253.913,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.54539,
    "c": 0.20056,
    "h": 288.6
  },
  "luminance": 0.1451
}

Semantic roles & 50–950 ramp

primary
#7151DB
secondary
#D2DFA9
accent
#E93FC1
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151DB

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

Preview Lab → · Contrast checker → · Palette generator →

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