#7170B8#7170B8

#7170B8 is a mid, moderate blue. Relative luminance 0.186; OKLCH L 57.7% C 0.109 H 283.1°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7170B8
RGBrgb(113, 112, 184)
HSLhsl(241, 34%, 58%)
HSVhsv(241, 39%, 72%)
CMYKcmyk(38.6%, 39.1%, 0%, 27.8%)
CIE-LABlab(50.17, 18.28, -37.92)
CIE-LCHlch(50.17, 42.10, 295.73°)
OKLaboklab(57.74% 0.0247 -0.1065)
OKLCHoklch(57.74% 0.109 283.1)
XYZxyz(21.2535, 18.5590, 47.8005)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170B8 #B7B870
analogous
#7093B8 #7170B8 #9570B8
triadic
#7170B8 #B87170 #70B871
tetradic
#7170B8 #B87093 #B7B870 #70B895
square
#7170B8 #B87093 #B7B870 #70B895
split-complementary
#7170B8 #B89570 #93B870
monochromatic
#3A3A74 #4F4E9D #7170B8 #9A99CC #C2C2E1

Accessibility & contrast

On white

4.46
#7170B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7170B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170B8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170B8#FFFFFF#000000##000000
##7170B81.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#587ABB
Deuteranopia (green-blind)
#5575B6
Tritanopia (blue-blind)
#5D7E8B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7170b8;
/* rgb */ color: rgb(113, 112, 184);
/* oklch */ color: oklch(57.7% 0.109 283.1);
Tailwind
colors: {
  custom: {
    50: '#9d99cd',
    500: '#7170b8',
    950: '#000000',
  },
}
SCSS
$custom: #7170b8;
$custom-light: #9d99cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7170b8",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 184
  },
  "hsl": {
    "h": 240.833,
    "s": 33.645,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57744,
    "c": 0.10937,
    "h": 283.1
  },
  "luminance": 0.1856
}

Semantic roles & 50–950 ramp

primary
#7170B8
secondary
#D0D0B4
accent
#CA5EC8
background
#F9F9FC
surface
#F2F2F9
border
#CCCCD2
text
#0E0D13
muted
#7E7E82

Preview Lab

Preview with #7170B8

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

Preview Lab → · Contrast checker → · Palette generator →

#7170B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva