#6254EF#6254EF

#6254EF is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.4% C 0.223 H 280.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#6254EF
RGBrgb(98, 84, 239)
HSLhsl(245, 83%, 63%)
HSVhsv(245, 65%, 94%)
CMYKcmyk(59%, 64.9%, 0%, 6.3%)
CIE-LABlab(45.86, 48.42, -76.27)
CIE-LCHlch(45.86, 90.34, 302.41°)
OKLaboklab(55.37% 0.0398 -0.2196)
OKLCHoklch(55.37% 0.223 280.3)
XYZxyz(23.7824, 15.1676, 83.3190)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254EF #E1EF54
analogous
#5493EF #6254EF #AF54EF
triadic
#6254EF #EF6254 #54EF62
tetradic
#6254EF #EF5493 #E1EF54 #54EFAF
square
#6254EF #EF5493 #E1EF54 #54EFAF
split-complementary
#6254EF #EFAF54 #93EF54
monochromatic
#2011B7 #2F1CEA #6254EF #958CF4 #C9C4F9

Accessibility & contrast

On white

5.21
#6254EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#6254EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254EF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254EF#FFFFFF#000000##FFFFFF
##6254EF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F4
Deuteranopia (green-blind)
#0067EC
Tritanopia (blue-blind)
#007C9A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6254ef;
/* rgb */ color: rgb(98, 84, 239);
/* oklch */ color: oklch(55.4% 0.223 280.3);
Tailwind
colors: {
  custom: {
    50: '#9c85f5',
    500: '#6254ef',
    950: '#000000',
  },
}
SCSS
$custom: #6254ef;
$custom-light: #9c85f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6254ef",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 245.419,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.22318,
    "h": 280.3
  },
  "luminance": 0.15169
}

Semantic roles & 50–950 ramp

primary
#6254EF
secondary
#E6EBB4
accent
#DF06CC
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6254EF

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

Preview Lab → · Contrast checker → · Palette generator →

#6254EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva