#6254E4#6254E4

#6254E4 is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.5% C 0.210 H 281.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#6254E4
RGBrgb(98, 84, 228)
HSLhsl(246, 73%, 61%)
HSVhsv(246, 63%, 89%)
CMYKcmyk(57%, 63.2%, 0%, 10.6%)
CIE-LABlab(44.99, 45.05, -71.48)
CIE-LCHlch(44.99, 84.49, 302.22°)
OKLaboklab(54.47% 0.0409 -0.2055)
OKLCHoklch(54.47% 0.21 281.3)
XYZxyz(22.2065, 14.5373, 75.0195)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254E4 #D6E454
analogous
#548EE4 #6254E4 #AA54E4
triadic
#6254E4 #E46254 #54E462
tetradic
#6254E4 #E4548E #D6E454 #54E4AA
square
#6254E4 #E4548E #D6E454 #54E4AA
split-complementary
#6254E4 #E4AA54 #8EE454
monochromatic
#271AA4 #3422D9 #6254E4 #9389EC #C3BEF5

Accessibility & contrast

On white

5.37
#6254E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#6254E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254E4
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254E4#FFFFFF#000000##FFFFFF
##6254E41.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0065E1
Tritanopia (blue-blind)
#167894
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #6254e4;
/* rgb */ color: rgb(98, 84, 228);
/* oklch */ color: oklch(54.5% 0.210 281.3);
Tailwind
colors: {
  custom: {
    50: '#9a85ee',
    500: '#6254e4',
    950: '#000000',
  },
}
SCSS
$custom: #6254e4;
$custom-light: #9a85ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6254e4",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 245.833,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54467,
    "c": 0.20957,
    "h": 281.3
  },
  "luminance": 0.14539
}

Semantic roles & 50–950 ramp

primary
#6254E4
secondary
#E0E5AF
accent
#D511C2
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6254E4

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

Preview Lab → · Contrast checker → · Palette generator →

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