#7170E2#7170E2

#7170E2 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.3% C 0.169 H 280.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7170E2
RGBrgb(113, 112, 226)
HSLhsl(241, 66%, 66%)
HSVhsv(241, 50%, 89%)
CMYKcmyk(50%, 50.4%, 0%, 11.4%)
CIE-LABlab(52.50, 30.69, -58.16)
CIE-LCHlch(52.50, 65.76, 297.82°)
OKLaboklab(60.26% 0.0306 -0.1658)
OKLCHoklch(60.26% 0.169 280.5)
XYZxyz(26.3275, 20.5886, 74.5235)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170E2 #E1E270
analogous
#70A8E2 #7170E2 #AA70E2
triadic
#7170E2 #E27170 #70E271
tetradic
#7170E2 #E270A8 #E1E270 #70E2AA
square
#7170E2 #E270A8 #E1E270 #70E2AA
split-complementary
#7170E2 #E2AA70 #A8E270
monochromatic
#2624B3 #3E3DD8 #7170E2 #A4A3EC #D6D6F7

Accessibility & contrast

On white

4.10
#7170E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#7170E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170E2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170E2#FFFFFF#000000##000000
##7170E21.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3882E6
Deuteranopia (green-blind)
#2D79E0
Tritanopia (blue-blind)
#45899E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7170e2;
/* rgb */ color: rgb(113, 112, 226);
/* oklch */ color: oklch(60.3% 0.169 280.5);
Tailwind
colors: {
  custom: {
    50: '#a199ec',
    500: '#7170e2',
    950: '#000000',
  },
}
SCSS
$custom: #7170e2;
$custom-light: #a199ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7170e2",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 226
  },
  "hsl": {
    "h": 240.526,
    "s": 66.279,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60263,
    "c": 0.16859,
    "h": 280.5
  },
  "luminance": 0.2059
}

Semantic roles & 50–950 ramp

primary
#7170E2
secondary
#E9EAC4
accent
#CE17CD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0D16
muted
#7F7E84

Preview Lab

Preview with #7170E2

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

Preview Lab → · Contrast checker → · Palette generator →

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