#7162AC#7162AC

#7162AC is a mid, moderate violet. Relative luminance 0.152; OKLCH L 54.3% C 0.114 H 291.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7162AC
RGBrgb(113, 98, 172)
HSLhsl(252, 31%, 53%)
HSVhsv(252, 43%, 67%)
CMYKcmyk(34.3%, 43%, 0%, 32.5%)
CIE-LABlab(45.94, 23.42, -37.61)
CIE-LCHlch(45.94, 44.30, 301.91°)
OKLaboklab(54.33% 0.0415 -0.1056)
OKLCHoklch(54.33% 0.114 291.5)
XYZxyz(18.6222, 15.2242, 40.9792)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7162AC #9DAC62
analogous
#6278AC #7162AC #9662AC
triadic
#7162AC #AC7162 #62AC71
tetradic
#7162AC #AC6278 #9DAC62 #62AC96
square
#7162AC #AC6278 #9DAC62 #62AC96
split-complementary
#7162AC #AC9662 #78AC62
monochromatic
#3C3361 #554889 #7162AC #958AC1 #B9B2D6

Accessibility & contrast

On white

5.19
#7162AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7162AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7162AC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7162AC#FFFFFF#000000##FFFFFF
##7162AC1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAF
Deuteranopia (green-blind)
#4C6BAA
Tritanopia (blue-blind)
#63707F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7162ac;
/* rgb */ color: rgb(113, 98, 172);
/* oklch */ color: oklch(54.3% 0.114 291.5);
Tailwind
colors: {
  custom: {
    50: '#9c8ec5',
    500: '#7162ac',
    950: '#000000',
  },
}
SCSS
$custom: #7162ac;
$custom-light: #9c8ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7162ac",
  "rgb": {
    "r": 113,
    "g": 98,
    "b": 172
  },
  "hsl": {
    "h": 252.162,
    "s": 30.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54327,
    "c": 0.11352,
    "h": 291.5
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#7162AC
secondary
#BEC5A5
accent
#C761B2
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0E0C13
muted
#7E7D82

Preview Lab

Preview with #7162AC

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

Preview Lab → · Contrast checker → · Palette generator →

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