#918EF7#918EF7

#918EF7 is a light, vivid blue. Relative luminance 0.321; OKLCH L 69.5% C 0.151 H 283.0°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#918EF7
RGBrgb(145, 142, 247)
HSLhsl(242, 87%, 76%)
HSVhsv(242, 43%, 97%)
CMYKcmyk(41.3%, 42.5%, 0%, 3.1%)
CIE-LABlab(63.41, 26.50, -52.28)
CIE-LCHlch(63.41, 58.61, 296.88°)
OKLaboklab(69.49% 0.0341 -0.1476)
OKLCHoklch(69.49% 0.151 283)
XYZxyz(38.1337, 32.0796, 92.1604)
Luminance0.3208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#918EF7 #F4F78E
analogous
#8EC0F7 #918EF7 #C68EF7
triadic
#918EF7 #F7918E #8EF791
tetradic
#918EF7 #F78EC0 #F4F78E #8EF7C6
square
#918EF7 #F78EC0 #F4F78E #8EF7C6
split-complementary
#918EF7 #F7C68E #C0F78E
monochromatic
#221CEF #5955F3 #918EF7 #C9C7FB #E3E2FD

Accessibility & contrast

On white

2.83
#918EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#918EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #918EF7
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##918EF7#FFFFFF#000000##000000
##918EF71.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#689DFB
Deuteranopia (green-blind)
#6396F5
Tritanopia (blue-blind)
#72A3B7
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #918ef7;
/* rgb */ color: rgb(145, 142, 247);
/* oklch */ color: oklch(69.5% 0.151 283.0);
Tailwind
colors: {
  custom: {
    50: '#b5affa',
    500: '#918ef7',
    950: '#000000',
  },
}
SCSS
$custom: #918ef7;
$custom-light: #b5affa;
$custom-dark: #000000;
JSON
{
  "hex": "#918ef7",
  "rgb": {
    "r": 145,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 241.714,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.69487,
    "c": 0.15149,
    "h": 283
  },
  "luminance": 0.32081
}

Semantic roles & 50–950 ramp

primary
#918EF7
secondary
#F4F5D6
accent
#E302DD
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #918EF7

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

Preview Lab → · Contrast checker → · Palette generator →

#918EF7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva