#838DF7#838DF7

#838DF7 is a light, vivid blue. Relative luminance 0.306; OKLCH L 68.3% C 0.155 H 277.4°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#838DF7
RGBrgb(131, 141, 247)
HSLhsl(235, 88%, 74%)
HSVhsv(235, 47%, 97%)
CMYKcmyk(47%, 42.9%, 0%, 3.1%)
CIE-LABlab(62.16, 23.76, -54.32)
CIE-LCHlch(62.16, 59.29, 293.62°)
OKLaboklab(68.28% 0.02 -0.1539)
OKLCHoklch(68.28% 0.155 277.4)
XYZxyz(35.6683, 30.5885, 92.0024)
Luminance0.3059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838DF7 #F7ED83
analogous
#83C7F7 #838DF7 #B383F7
triadic
#838DF7 #F7838D #8DF783
tetradic
#838DF7 #F783C7 #F7ED83 #83F7B3
square
#838DF7 #F783C7 #F7ED83 #83F7B3
split-complementary
#838DF7 #F7B383 #C7F783
monochromatic
#1023F0 #4A58F3 #838DF7 #BCC2FB #E2E5FD

Accessibility & contrast

On white

2.95
#838DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#838DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #838DF7
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838DF7#FFFFFF#000000##000000
##838DF71.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#639BFB
Deuteranopia (green-blind)
#5992F5
Tritanopia (blue-blind)
#58A3B6
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #838df7;
/* rgb */ color: rgb(131, 141, 247);
/* oklch */ color: oklch(68.3% 0.155 277.4);
Tailwind
colors: {
  custom: {
    50: '#adaefa',
    500: '#838df7',
    950: '#000000',
  },
}
SCSS
$custom: #838df7;
$custom-light: #adaefa;
$custom-dark: #000000;
JSON
{
  "hex": "#838df7",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 234.828,
    "s": 87.879,
    "l": 74.118
  },
  "oklch": {
    "l": 0.68283,
    "c": 0.1552,
    "h": 277.4
  },
  "luminance": 0.3059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #838DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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