#817FC7#817FC7

#817FC7 is a light, moderate blue. Relative luminance 0.240; OKLCH L 62.8% C 0.107 H 284.1°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#817FC7
RGBrgb(129, 127, 199)
HSLhsl(242, 39%, 64%)
HSVhsv(242, 36%, 78%)
CMYKcmyk(35.2%, 36.2%, 0%, 22%)
CIE-LABlab(56.06, 17.89, -37.17)
CIE-LCHlch(56.06, 41.25, 295.70°)
OKLaboklab(62.8% 0.0262 -0.104)
OKLCHoklch(62.8% 0.107 284.1)
XYZxyz(26.9486, 23.9686, 57.2283)
Luminance0.2397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817FC7 #C5C77F
analogous
#7FA1C7 #817FC7 #A57FC7
triadic
#817FC7 #C7817F #7FC781
tetradic
#817FC7 #C77FA1 #C5C77F #7FC7A5
square
#817FC7 #C77FA1 #C5C77F #7FC7A5
split-complementary
#817FC7 #C7A57F #A1C77F
monochromatic
#403E8E #5754B4 #817FC7 #ABAADA #D5D4EC

Accessibility & contrast

On white

3.62
#817FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#817FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817FC7
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817FC7#FFFFFF#000000##000000
##817FC71.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6889CA
Deuteranopia (green-blind)
#6684C5
Tritanopia (blue-blind)
#6E8D9A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #817fc7;
/* rgb */ color: rgb(129, 127, 199);
/* oklch */ color: oklch(62.8% 0.107 284.1);
Tailwind
colors: {
  custom: {
    50: '#a8a4d8',
    500: '#817fc7',
    950: '#000000',
  },
}
SCSS
$custom: #817fc7;
$custom-light: #a8a4d8;
$custom-dark: #000000;
JSON
{
  "hex": "#817fc7",
  "rgb": {
    "r": 129,
    "g": 127,
    "b": 199
  },
  "hsl": {
    "h": 241.667,
    "s": 39.13,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62803,
    "c": 0.10725,
    "h": 284.1
  },
  "luminance": 0.23969
}

Semantic roles & 50–950 ramp

primary
#817FC7
secondary
#DDDEC4
accent
#B233AF
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#100F14
muted
#7F7F83

Preview Lab

Preview with #817FC7

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

Preview Lab → · Contrast checker → · Palette generator →

#817FC7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva