#6254EA#6254EA

#6254EA is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 55.0% C 0.217 H 280.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#6254EA
RGBrgb(98, 84, 234)
HSLhsl(246, 78%, 62%)
HSVhsv(246, 64%, 92%)
CMYKcmyk(58.1%, 64.1%, 0%, 8.2%)
CIE-LABlab(45.46, 46.89, -74.11)
CIE-LCHlch(45.46, 87.70, 302.32°)
OKLaboklab(54.96% 0.0403 -0.2132)
OKLCHoklch(54.96% 0.217 280.7)
XYZxyz(23.0539, 14.8762, 79.4825)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254EA #DCEA54
analogous
#5491EA #6254EA #AD54EA
triadic
#6254EA #EA6254 #54EA62
tetradic
#6254EA #EA5491 #DCEA54 #54EAAD
square
#6254EA #EA5491 #DCEA54 #54EAAD
split-complementary
#6254EA #EAAD54 #91EA54
monochromatic
#2415AE #301DE3 #6254EA #948BF1 #C6C1F7

Accessibility & contrast

On white

5.28
#6254EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#6254EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254EA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254EA#FFFFFF#000000##FFFFFF
##6254EA1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0066E7
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6254ea;
/* rgb */ color: rgb(98, 84, 234);
/* oklch */ color: oklch(55.0% 0.217 280.7);
Tailwind
colors: {
  custom: {
    50: '#9b85f2',
    500: '#6254ea',
    950: '#000000',
  },
}
SCSS
$custom: #6254ea;
$custom-light: #9b85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6254ea",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 245.6,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54955,
    "c": 0.21703,
    "h": 280.7
  },
  "luminance": 0.14878
}

Semantic roles & 50–950 ramp

primary
#6254EA
secondary
#E3E8B2
accent
#DA0BC7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6254EA

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

Preview Lab → · Contrast checker → · Palette generator →

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