#7170EA#7170EA

#7170EA is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.8% C 0.179 H 280.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7170EA
RGBrgb(113, 112, 234)
HSLhsl(240, 74%, 68%)
HSVhsv(240, 52%, 92%)
CMYKcmyk(51.7%, 52.1%, 0%, 8.2%)
CIE-LABlab(52.99, 33.13, -61.85)
CIE-LCHlch(52.99, 70.16, 298.17°)
OKLaboklab(60.79% 0.0312 -0.1766)
OKLCHoklch(60.79% 0.179 280)
XYZxyz(27.4509, 21.0379, 80.4402)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170EA #E9EA70
analogous
#70ACEA #7170EA #AE70EA
triadic
#7170EA #EA7170 #70EA71
tetradic
#7170EA #EA70AC #E9EA70 #70EAAE
square
#7170EA #EA70AC #E9EA70 #70EAAE
split-complementary
#7170EA #EAAE70 #ACEA70
monochromatic
#1E1DC3 #3C3BE2 #7170EA #A6A5F2 #DBDBFA

Accessibility & contrast

On white

4.03
#7170EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#7170EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170EA
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170EA#FFFFFF#000000##000000
##7170EA1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E83EE
Deuteranopia (green-blind)
#1D7AE7
Tritanopia (blue-blind)
#3E8BA2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7170ea;
/* rgb */ color: rgb(113, 112, 234);
/* oklch */ color: oklch(60.8% 0.179 280.0);
Tailwind
colors: {
  custom: {
    50: '#a299f1',
    500: '#7170ea',
    950: '#000000',
  },
}
SCSS
$custom: #7170ea;
$custom-light: #a299f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7170ea",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 240.492,
    "s": 74.39,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60793,
    "c": 0.17937,
    "h": 280
  },
  "luminance": 0.2104
}

Semantic roles & 50–950 ramp

primary
#7170EA
secondary
#EDEEC8
accent
#D70FD5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7170EA

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

Preview Lab → · Contrast checker → · Palette generator →

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