#838CF5#838CF5

#838CF5 is a light, vivid blue. Relative luminance 0.302; OKLCH L 68.0% C 0.154 H 277.8°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#838CF5
RGBrgb(131, 140, 245)
HSLhsl(235, 85%, 74%)
HSVhsv(235, 47%, 96%)
CMYKcmyk(46.5%, 42.9%, 0%, 3.9%)
CIE-LABlab(61.80, 23.76, -53.79)
CIE-LCHlch(61.80, 58.80, 293.83°)
OKLaboklab(67.98% 0.0208 -0.1524)
OKLCHoklch(67.98% 0.154 277.8)
XYZxyz(35.2145, 30.1722, 90.3368)
Luminance0.3017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838CF5 #F5EC83
analogous
#83C5F5 #838CF5 #B383F5
triadic
#838CF5 #F5838C #8CF583
tetradic
#838CF5 #F583C5 #F5EC83 #83F5B3
square
#838CF5 #F583C5 #F5EC83 #83F5B3
split-complementary
#838CF5 #F5B383 #C5F583
monochromatic
#1324EB #4A57F0 #838CF5 #BCC1FA #E3E5FD

Accessibility & contrast

On white

2.99
#838CF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#838CF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #838CF5
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838CF5#FFFFFF#000000##000000
##838CF51.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#639AF9
Deuteranopia (green-blind)
#5991F3
Tritanopia (blue-blind)
#5AA2B5
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #838cf5;
/* rgb */ color: rgb(131, 140, 245);
/* oklch */ color: oklch(68.0% 0.154 277.8);
Tailwind
colors: {
  custom: {
    50: '#adadf9',
    500: '#838cf5',
    950: '#000000',
  },
}
SCSS
$custom: #838cf5;
$custom-light: #adadf9;
$custom-dark: #000000;
JSON
{
  "hex": "#838cf5",
  "rgb": {
    "r": 131,
    "g": 140,
    "b": 245
  },
  "hsl": {
    "h": 235.263,
    "s": 85.075,
    "l": 73.725
  },
  "oklch": {
    "l": 0.67977,
    "c": 0.15376,
    "h": 277.8
  },
  "luminance": 0.30174
}

Semantic roles & 50–950 ramp

primary
#838CF5
secondary
#F5F2D6
accent
#D004E2
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #838CF5

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

Preview Lab → · Contrast checker → · Palette generator →

#838CF5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva