#6254E8#6254E8

#6254E8 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.8% C 0.215 H 280.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#6254E8
RGBrgb(98, 84, 232)
HSLhsl(246, 76%, 62%)
HSVhsv(246, 64%, 91%)
CMYKcmyk(57.8%, 63.8%, 0%, 9%)
CIE-LABlab(45.31, 46.28, -73.24)
CIE-LCHlch(45.31, 86.63, 302.29°)
OKLaboklab(54.79% 0.0406 -0.2107)
OKLCHoklch(54.79% 0.215 280.9)
XYZxyz(22.7682, 14.7620, 77.9778)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254E8 #DAE854
analogous
#5490E8 #6254E8 #AC54E8
triadic
#6254E8 #E86254 #54E862
tetradic
#6254E8 #E85490 #DAE854 #54E8AC
square
#6254E8 #E85490 #DAE854 #54E8AC
split-complementary
#6254E8 #E8AC54 #90E854
monochromatic
#2517AB #311EE1 #6254E8 #948AEF #C5C0F7

Accessibility & contrast

On white

5.31
#6254E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#6254E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254E8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254E8#FFFFFF#000000##FFFFFF
##6254E81.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071ED
Deuteranopia (green-blind)
#0066E5
Tritanopia (blue-blind)
#087996
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6254e8;
/* rgb */ color: rgb(98, 84, 232);
/* oklch */ color: oklch(54.8% 0.215 280.9);
Tailwind
colors: {
  custom: {
    50: '#9b85f0',
    500: '#6254e8',
    950: '#000000',
  },
}
SCSS
$custom: #6254e8;
$custom-light: #9b85f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6254e8",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 245.676,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54792,
    "c": 0.21456,
    "h": 280.9
  },
  "luminance": 0.14764
}

Semantic roles & 50–950 ramp

primary
#6254E8
secondary
#E2E7B1
accent
#D80DC5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6254E8

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

Preview Lab → · Contrast checker → · Palette generator →

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