#7151FC#7151FC

#7151FC is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.2% C 0.240 H 284.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7151FC
RGBrgb(113, 81, 252)
HSLhsl(251, 97%, 65%)
HSVhsv(251, 68%, 99%)
CMYKcmyk(55.2%, 67.9%, 0%, 1.2%)
CIE-LABlab(47.52, 56.16, -80.78)
CIE-LCHlch(47.52, 98.39, 304.81°)
OKLaboklab(57.19% 0.0598 -0.2324)
OKLCHoklch(57.19% 0.24 284.4)
XYZxyz(27.3178, 16.4222, 93.8069)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151FC #DCFC51
analogous
#5186FC #7151FC #C651FC
triadic
#7151FC #FC7151 #51FC71
tetradic
#7151FC #FC5186 #DCFC51 #51FCC6
square
#7151FC #FC5186 #DCFC51 #51FCC6
split-complementary
#7151FC #FCC651 #86FC51
monochromatic
#2A04CF #4015FB #7151FC #A28DFD #D3C9FE

Accessibility & contrast

On white

4.90
#7151FC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7151FC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7151FC#FFFFFF#000000##FFFFFF
##7151FC1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#006BF9
Tritanopia (blue-blind)
#2E7EA0
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7151fc;
/* rgb */ color: rgb(113, 81, 252);
/* oklch */ color: oklch(57.2% 0.240 284.4);
Tailwind
colors: {
  custom: {
    50: '#a684ff',
    500: '#7151fc',
    950: '#000000',
  },
}
SCSS
$custom: #7151fc;
$custom-light: #a684ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7151fc",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 252
  },
  "hsl": {
    "h": 251.228,
    "s": 96.61,
    "l": 65.294
  },
  "oklch": {
    "l": 0.5719,
    "c": 0.23997,
    "h": 284.4
  },
  "luminance": 0.16424
}

Semantic roles & 50–950 ramp

primary
#7151FC
secondary
#E6F1B8
accent
#E600BB
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B18
muted
#807C86

Preview Lab

Preview with #7151FC

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

Preview Lab → · Contrast checker → · Palette generator →

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