#7156EF#7156EF

#7156EF is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.8% C 0.219 H 285.2°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7156EF
RGBrgb(113, 86, 239)
HSLhsl(251, 83%, 64%)
HSVhsv(251, 64%, 94%)
CMYKcmyk(52.7%, 64%, 0%, 6.3%)
CIE-LABlab(47.49, 49.71, -73.56)
CIE-LCHlch(47.49, 88.78, 304.05°)
OKLaboklab(56.85% 0.0572 -0.2112)
OKLCHoklch(56.85% 0.219 285.2)
XYZxyz(25.7131, 16.3969, 83.4546)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7156EF #D4EF56
analogous
#5687EF #7156EF #BD56EF
triadic
#7156EF #EF7156 #56EF71
tetradic
#7156EF #EF5687 #D4EF56 #56EFBD
square
#7156EF #EF5687 #D4EF56 #56EFBD
split-complementary
#7156EF #EFBD56 #87EF56
monochromatic
#2F12B9 #421EEA #7156EF #A08EF4 #CFC6FA

Accessibility & contrast

On white

4.91
#7156EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7156EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7156EF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7156EF#FFFFFF#000000##FFFFFF
##7156EF1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F4
Deuteranopia (green-blind)
#006CEC
Tritanopia (blue-blind)
#3C7C9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7156ef;
/* rgb */ color: rgb(113, 86, 239);
/* oklch */ color: oklch(56.8% 0.219 285.2);
Tailwind
colors: {
  custom: {
    50: '#a487f5',
    500: '#7156ef',
    950: '#000000',
  },
}
SCSS
$custom: #7156ef;
$custom-light: #a487f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7156ef",
  "rgb": {
    "r": 113,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 250.588,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56848,
    "c": 0.21882,
    "h": 285.2
  },
  "luminance": 0.16398
}

Semantic roles & 50–950 ramp

primary
#7156EF
secondary
#E2EBB5
accent
#DF06B9
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7156EF

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

Preview Lab → · Contrast checker → · Palette generator →

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