#7170CB#7170CB

#7170CB is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.8% C 0.137 H 281.8°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7170CB
RGBrgb(113, 112, 203)
HSLhsl(241, 47%, 62%)
HSVhsv(241, 45%, 80%)
CMYKcmyk(44.3%, 44.8%, 0%, 20.4%)
CIE-LABlab(51.16, 23.79, -47.26)
CIE-LCHlch(51.16, 52.91, 296.72°)
OKLaboklab(58.83% 0.0281 -0.1338)
OKLCHoklch(58.83% 0.137 281.8)
XYZxyz(23.3805, 19.4098, 59.0029)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170CB #CACB70
analogous
#709DCB #7170CB #9F70CB
triadic
#7170CB #CB7170 #70CB71
tetradic
#7170CB #CB709D #CACB70 #70CB9F
square
#7170CB #CB709D #CACB70 #70CB9F
split-complementary
#7170CB #CB9F70 #9DCB70
monochromatic
#34338D #4544BA #7170CB #9E9DDB #CACAEC

Accessibility & contrast

On white

4.30
#7170CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7170CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170CB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170CB#FFFFFF#000000##000000
##7170CB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7DCE
Deuteranopia (green-blind)
#4877C9
Tritanopia (blue-blind)
#548394
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7170cb;
/* rgb */ color: rgb(113, 112, 203);
/* oklch */ color: oklch(58.8% 0.137 281.8);
Tailwind
colors: {
  custom: {
    50: '#9e99db',
    500: '#7170cb',
    950: '#000000',
  },
}
SCSS
$custom: #7170cb;
$custom-light: #9e99db;
$custom-dark: #000000;
JSON
{
  "hex": "#7170cb",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 240.659,
    "s": 46.667,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58827,
    "c": 0.1367,
    "h": 281.8
  },
  "luminance": 0.19411
}

Semantic roles & 50–950 ramp

primary
#7170CB
secondary
#DCDCBB
accent
#BA2CB8
background
#FAF9FD
surface
#F3F2FB
border
#CDCCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #7170CB

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

Preview Lab → · Contrast checker → · Palette generator →

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