#7162BB#7162BB

#7162BB is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.2% C 0.135 H 289.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7162BB
RGBrgb(113, 98, 187)
HSLhsl(250, 40%, 56%)
HSVhsv(250, 48%, 73%)
CMYKcmyk(39.6%, 47.6%, 0%, 26.7%)
CIE-LABlab(46.76, 27.62, -45.07)
CIE-LCHlch(46.76, 52.85, 301.50°)
OKLaboklab(55.21% 0.0438 -0.1274)
OKLCHoklch(55.21% 0.135 289)
XYZxyz(20.1449, 15.8333, 48.9988)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7162BB #ACBB62
analogous
#627FBB #7162BB #9D62BB
triadic
#7162BB #BB7162 #62BB71
tetradic
#7162BB #BB627F #ACBB62 #62BB9D
square
#7162BB #BB627F #ACBB62 #62BB9D
split-complementary
#7162BB #BB9D62 #7FBB62
monochromatic
#3C3171 #53449C #7162BB #988DCD #BEB7E0

Accessibility & contrast

On white

5.04
#7162BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7162BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7162BB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7162BB#FFFFFF#000000##FFFFFF
##7162BB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4071BE
Deuteranopia (green-blind)
#416DB9
Tritanopia (blue-blind)
#5D7485
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7162bb;
/* rgb */ color: rgb(113, 98, 187);
/* oklch */ color: oklch(55.2% 0.135 289.0);
Tailwind
colors: {
  custom: {
    50: '#9d8fd0',
    500: '#7162bb',
    950: '#000000',
  },
}
SCSS
$custom: #7162bb;
$custom-light: #9d8fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7162bb",
  "rgb": {
    "r": 113,
    "g": 98,
    "b": 187
  },
  "hsl": {
    "h": 250.112,
    "s": 39.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55207,
    "c": 0.13472,
    "h": 289
  },
  "luminance": 0.15834
}

Semantic roles & 50–950 ramp

primary
#7162BB
secondary
#C9CFAA
accent
#CF58BB
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0F0C14
muted
#7E7D82

Preview Lab

Preview with #7162BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7162BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva