#817DEC#817DEC

#817DEC is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.5% C 0.162 H 282.5°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#817DEC
RGBrgb(129, 125, 236)
HSLhsl(242, 74%, 71%)
HSVhsv(242, 47%, 93%)
CMYKcmyk(45.3%, 47%, 0%, 7.5%)
CIE-LABlab(57.45, 29.49, -55.75)
CIE-LCHlch(57.45, 63.07, 297.88°)
OKLaboklab(64.48% 0.035 -0.1582)
OKLCHoklch(64.48% 0.162 282.5)
XYZxyz(31.5227, 25.3890, 82.5802)
Luminance0.2539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817DEC #E8EC7D
analogous
#7DB0EC #817DEC #B87DEC
triadic
#817DEC #EC817D #7DEC81
tetradic
#817DEC #EC7DB0 #E8EC7D #7DECB8
square
#817DEC #EC7DB0 #E8EC7D #7DECB8
split-complementary
#817DEC #ECB87D #B0EC7D
monochromatic
#251ED0 #4D48E4 #817DEC #B5B2F4 #E5E4FB

Accessibility & contrast

On white

3.46
#817DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#817DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817DEC
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817DEC#FFFFFF#000000##000000
##817DEC1.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8EF0
Deuteranopia (green-blind)
#4986EA
Tritanopia (blue-blind)
#5D94A9
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #817dec;
/* rgb */ color: rgb(129, 125, 236);
/* oklch */ color: oklch(64.5% 0.162 282.5);
Tailwind
colors: {
  custom: {
    50: '#aba2f3',
    500: '#817dec',
    950: '#000000',
  },
}
SCSS
$custom: #817dec;
$custom-light: #aba2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#817dec",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 242.162,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.64483,
    "c": 0.16205,
    "h": 282.5
  },
  "luminance": 0.2539
}

Semantic roles & 50–950 ramp

primary
#817DEC
secondary
#F0F1D3
accent
#D70FCF
background
#FAFAFE
surface
#F5F3FD
border
#CFCDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #817DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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