#7170B7#7170B7

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

Color values

HEX#7170B7
RGBrgb(113, 112, 183)
HSLhsl(241, 33%, 58%)
HSVhsv(241, 39%, 72%)
CMYKcmyk(38.3%, 38.8%, 0%, 28.2%)
CIE-LABlab(50.12, 18.00, -37.42)
CIE-LCHlch(50.12, 41.52, 295.68°)
OKLaboklab(57.69% 0.0245 -0.1051)
OKLCHoklch(57.69% 0.108 283.1)
XYZxyz(21.1491, 18.5172, 47.2504)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170B7 #B6B770
analogous
#7092B7 #7170B7 #9470B7
triadic
#7170B7 #B77170 #70B771
tetradic
#7170B7 #B77092 #B6B770 #70B794
square
#7170B7 #B77092 #B6B770 #70B794
split-complementary
#7170B7 #B79470 #92B770
monochromatic
#3B3A73 #4F4E9C #7170B7 #9999CB #C2C1E0

Accessibility & contrast

On white

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

On black

4.70
#7170B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170B7
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170B7#FFFFFF#000000##000000
##7170B71.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#587ABA
Deuteranopia (green-blind)
#5675B5
Tritanopia (blue-blind)
#5D7E8B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7170b7;
/* rgb */ color: rgb(113, 112, 183);
/* oklch */ color: oklch(57.7% 0.108 283.1);
Tailwind
colors: {
  custom: {
    50: '#9c99cd',
    500: '#7170b7',
    950: '#000000',
  },
}
SCSS
$custom: #7170b7;
$custom-light: #9c99cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7170b7",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 183
  },
  "hsl": {
    "h": 240.845,
    "s": 33.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57689,
    "c": 0.10791,
    "h": 283.1
  },
  "luminance": 0.18518
}

Semantic roles & 50–950 ramp

primary
#7170B7
secondary
#CFD0B3
accent
#C95FC8
background
#F9F9FC
surface
#F2F2F9
border
#CCCCD2
text
#0E0D13
muted
#7E7E82

Preview Lab

Preview with #7170B7

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

Preview Lab → · Contrast checker → · Palette generator →

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