#7170CD#7170CD

#7170CD is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.9% C 0.140 H 281.7°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7170CD
RGBrgb(113, 112, 205)
HSLhsl(241, 48%, 62%)
HSVhsv(241, 45%, 80%)
CMYKcmyk(44.9%, 45.4%, 0%, 19.6%)
CIE-LABlab(51.27, 24.38, -48.22)
CIE-LCHlch(51.27, 54.03, 296.82°)
OKLaboklab(58.95% 0.0284 -0.1366)
OKLCHoklch(58.95% 0.14 281.7)
XYZxyz(23.6204, 19.5057, 60.2662)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170CD #CCCD70
analogous
#709ECD #7170CD #A070CD
triadic
#7170CD #CD7170 #70CD71
tetradic
#7170CD #CD709E #CCCD70 #70CDA0
square
#7170CD #CD709E #CCCD70 #70CDA0
split-complementary
#7170CD #CDA070 #9ECD70
monochromatic
#333290 #4443BD #7170CD #9E9DDD #CBCBED

Accessibility & contrast

On white

4.28
#7170CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7170CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170CD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170CD#FFFFFF#000000##000000
##7170CD1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7ED0
Deuteranopia (green-blind)
#4677CB
Tritanopia (blue-blind)
#538394
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7170cd;
/* rgb */ color: rgb(113, 112, 205);
/* oklch */ color: oklch(58.9% 0.140 281.7);
Tailwind
colors: {
  custom: {
    50: '#9f99dd',
    500: '#7170cd',
    950: '#000000',
  },
}
SCSS
$custom: #7170cd;
$custom-light: #9f99dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7170cd",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 240.645,
    "s": 48.187,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58946,
    "c": 0.13952,
    "h": 281.7
  },
  "luminance": 0.19507
}

Semantic roles & 50–950 ramp

primary
#7170CD
secondary
#DDDDBB
accent
#BB2ABA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #7170CD

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

Preview Lab → · Contrast checker → · Palette generator →

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