#7156F2#7156F2

#7156F2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.222 H 284.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7156F2
RGBrgb(113, 86, 242)
HSLhsl(250, 86%, 64%)
HSVhsv(250, 64%, 95%)
CMYKcmyk(53.3%, 64.5%, 0%, 5.1%)
CIE-LABlab(47.72, 50.58, -74.87)
CIE-LCHlch(47.72, 90.36, 304.04°)
OKLaboklab(57.09% 0.0569 -0.215)
OKLCHoklch(57.09% 0.222 284.8)
XYZxyz(26.1600, 16.5756, 85.8082)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7156F2 #D7F256
analogous
#5689F2 #7156F2 #BF56F2
triadic
#7156F2 #F27156 #56F271
tetradic
#7156F2 #F25689 #D7F256 #56F2BF
square
#7156F2 #F25689 #D7F256 #56F2BF
split-complementary
#7156F2 #F2BF56 #89F256
monochromatic
#2D0FBF #411DEE #7156F2 #A18FF6 #D1C8FB

Accessibility & contrast

On white

4.87
#7156F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7156F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7156F2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7156F2#FFFFFF#000000##FFFFFF
##7156F21.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#397D9D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7156f2;
/* rgb */ color: rgb(113, 86, 242);
/* oklch */ color: oklch(57.1% 0.222 284.8);
Tailwind
colors: {
  custom: {
    50: '#a587f7',
    500: '#7156f2',
    950: '#000000',
  },
}
SCSS
$custom: #7156f2;
$custom-light: #a587f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7156f2",
  "rgb": {
    "r": 113,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 250.385,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57087,
    "c": 0.22244,
    "h": 284.8
  },
  "luminance": 0.16577
}

Semantic roles & 50–950 ramp

primary
#7156F2
secondary
#E4EDB7
accent
#E203BC
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7156F2

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

Preview Lab → · Contrast checker → · Palette generator →

#7156F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva